Fix text alignment in roundabout widget
This commit is contained in:
parent
ac7f765be7
commit
b4db06dfe3
1 changed files with 1 additions and 1 deletions
|
@ -195,7 +195,7 @@ public class NextTurnInfoWidget extends TextInfoWidget {
|
||||||
if(textPaint != null ) {
|
if(textPaint != null ) {
|
||||||
if (turnType != null && !mini && turnType.getExitOut() > 0) {
|
if (turnType != null && !mini && turnType.getExitOut() > 0) {
|
||||||
canvas.drawText(turnType.getExitOut() + "", centerText.x,
|
canvas.drawText(turnType.getExitOut() + "", centerText.x,
|
||||||
centerText.y - textPaint.ascent() / 2, textPaint);
|
centerText.y - (textPaint.descent() + textPaint.ascent()) / 2, textPaint);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue