Merge pull request #4559 from osmandapp/lanes_narrower
Fix arrows height
This commit is contained in:
commit
2467a20094
1 changed files with 6 additions and 1 deletions
|
@ -904,6 +904,7 @@ public class RouteInfoWidgetsFactory {
|
||||||
|
|
||||||
public void updateBounds() {
|
public void updateBounds() {
|
||||||
float w = 0;
|
float w = 0;
|
||||||
|
int h = 0;
|
||||||
float coef = scaleCoefficient / miniCoeff;
|
float coef = scaleCoefficient / miniCoeff;
|
||||||
if (lanes != null) {
|
if (lanes != null) {
|
||||||
for (int i = 0; i < lanes.length; i++) {
|
for (int i = 0; i < lanes.length; i++) {
|
||||||
|
@ -920,11 +921,15 @@ public class RouteInfoWidgetsFactory {
|
||||||
} else {
|
} else {
|
||||||
w += b.getWidth();
|
w += b.getWidth();
|
||||||
}
|
}
|
||||||
|
int bitmapHeight = b.getHeight();
|
||||||
|
if (bitmapHeight > h) {
|
||||||
|
h = bitmapHeight;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
width = (int) w;
|
width = (int) w;
|
||||||
height = (int) (54 * coef);
|
height = h;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue