Fix arrows height

This commit is contained in:
PavelRatushny 2017-10-09 18:15:10 +03:00
parent aa0b9dd0ec
commit a8a5b16d06

View file

@ -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