diff --git a/OsmAnd/res/layout/plan_route_info.xml b/OsmAnd/res/layout/plan_route_info.xml index f3dce48204..da0cc90919 100644 --- a/OsmAnd/res/layout/plan_route_info.xml +++ b/OsmAnd/res/layout/plan_route_info.xml @@ -53,7 +53,8 @@ + android:layout_weight="1" + android:fillViewport="true"> 72dp 400dp 160dp - 420dp + 440dp 60dp 78dp diff --git a/OsmAnd/src/net/osmand/plus/views/controls/MapRoutePreferencesControl.java b/OsmAnd/src/net/osmand/plus/views/controls/MapRoutePreferencesControl.java index 7eeb8d72ba..281b977b36 100644 --- a/OsmAnd/src/net/osmand/plus/views/controls/MapRoutePreferencesControl.java +++ b/OsmAnd/src/net/osmand/plus/views/controls/MapRoutePreferencesControl.java @@ -160,8 +160,8 @@ public class MapRoutePreferencesControl { } else { maxHeight = -1; lp.height = WindowManager.LayoutParams.MATCH_PARENT; - lp.width = (int) mapActivity.getResources().getDimension(R.dimen.map_route_planning_max_height); - lp.gravity = Gravity.BOTTOM | Gravity.LEFT; + lp.width = (int) mapActivity.getResources().getDimension(R.dimen.map_route_planning_land_width); + lp.gravity = Gravity.LEFT; } dialog.getContext().setTheme(R.style.Dialog_Fullscreen); dialog.getWindow().clearFlags(WindowManager.LayoutParams.FLAG_DIM_BEHIND);