From a8a5b16d064f766f798ce75bc3b8866417b9fb3a Mon Sep 17 00:00:00 2001 From: PavelRatushny Date: Mon, 9 Oct 2017 18:15:10 +0300 Subject: [PATCH] Fix arrows height --- .../plus/views/mapwidgets/RouteInfoWidgetsFactory.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/views/mapwidgets/RouteInfoWidgetsFactory.java b/OsmAnd/src/net/osmand/plus/views/mapwidgets/RouteInfoWidgetsFactory.java index d671fdc0ed..2e196cae6e 100644 --- a/OsmAnd/src/net/osmand/plus/views/mapwidgets/RouteInfoWidgetsFactory.java +++ b/OsmAnd/src/net/osmand/plus/views/mapwidgets/RouteInfoWidgetsFactory.java @@ -904,6 +904,7 @@ public class RouteInfoWidgetsFactory { public void updateBounds() { float w = 0; + int h = 0; float coef = scaleCoefficient / miniCoeff; if (lanes != null) { for (int i = 0; i < lanes.length; i++) { @@ -920,11 +921,15 @@ public class RouteInfoWidgetsFactory { } else { w += b.getWidth(); } + int bitmapHeight = b.getHeight(); + if (bitmapHeight > h) { + h = bitmapHeight; + } } } } width = (int) w; - height = (int) (54 * coef); + height = h; } @Override