From 013b7c3aec27e89595a9b69c834f6c04df63d243 Mon Sep 17 00:00:00 2001 From: Alexey Kulish Date: Fri, 23 Oct 2015 10:21:11 +0300 Subject: [PATCH] Fix context menu layout --- .../net/osmand/plus/mapcontextmenu/MapContextMenuFragment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;