Merge pull request #8607 from osmandapp/Fix_zoom_button_context_menu

Fix zoom buttons overlap to context menu when cutout exist
This commit is contained in:
vshcherb 2020-03-04 18:43:38 +01:00 committed by GitHub
commit 5ef2459416
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2101,7 +2101,7 @@ public class MapContextMenuFragment extends BaseOsmAndFragment implements Downlo
}
private int getZoomButtonsY(int y) {
return y - zoomButtonsHeight - shadowHeight - zoomPaddingTop;
return y - mainView.getTop() - zoomButtonsHeight + zoomPaddingTop;
}
private void doLayoutMenu() {