diff --git a/OsmAnd/src/net/osmand/plus/mapcontextmenu/MapContextMenuFragment.java b/OsmAnd/src/net/osmand/plus/mapcontextmenu/MapContextMenuFragment.java index 1687a78b49..487cb6a36b 100644 --- a/OsmAnd/src/net/osmand/plus/mapcontextmenu/MapContextMenuFragment.java +++ b/OsmAnd/src/net/osmand/plus/mapcontextmenu/MapContextMenuFragment.java @@ -441,7 +441,7 @@ public class MapContextMenuFragment extends Fragment { int dy = 0; if (!menu.isLandscapeLayout() && menuTopViewHeight != 0) { - dy = newMenuTopViewHeight - menuTopViewHeight; + dy = Math.max(0, newMenuTopViewHeight - menuTopViewHeight); } menuTopViewHeight = newMenuTopViewHeight; menuTitleHeight = menuTopShadowHeight + menuTopShadowAllHeight + dy;