Skip to content

Commit

Permalink
[Bugfix] Consistently use window coordinates to calculate Snackbar of…
Browse files Browse the repository at this point in the history
…fsets. In one place screen and window coordinates are mixed, which leads to bad behavior in split screen apps.

PiperOrigin-RevId: 546057340
  • Loading branch information
Material Design Team authored and paulfthomas committed Jul 7, 2023
1 parent 7289aa6 commit 57b2663
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -845,7 +845,7 @@ private void showViewImpl() {

private int getViewAbsoluteBottom() {
int[] absoluteLocation = new int[2];
view.getLocationOnScreen(absoluteLocation);
view.getLocationInWindow(absoluteLocation);
return absoluteLocation[1] + view.getHeight();
}

Expand Down

0 comments on commit 57b2663

Please sign in to comment.