Fix context menu layout

This commit is contained in:
Alexey Kulish 2015-10-23 10:21:11 +03:00
parent 6cf13ef505
commit 013b7c3aec

View file

@ -441,7 +441,7 @@ public class MapContextMenuFragment extends Fragment {
int dy = 0; int dy = 0;
if (!menu.isLandscapeLayout() && menuTopViewHeight != 0) { if (!menu.isLandscapeLayout() && menuTopViewHeight != 0) {
dy = newMenuTopViewHeight - menuTopViewHeight; dy = Math.max(0, newMenuTopViewHeight - menuTopViewHeight);
} }
menuTopViewHeight = newMenuTopViewHeight; menuTopViewHeight = newMenuTopViewHeight;
menuTitleHeight = menuTopShadowHeight + menuTopShadowAllHeight + dy; menuTitleHeight = menuTopShadowHeight + menuTopShadowAllHeight + dy;