Fix text alignment in roundabout widget

This commit is contained in:
crimean 2019-06-06 11:25:29 +03:00
parent ac7f765be7
commit b4db06dfe3

View file

@ -195,7 +195,7 @@ public class NextTurnInfoWidget extends TextInfoWidget {
if(textPaint != null ) {
if (turnType != null && !mini && turnType.getExitOut() > 0) {
canvas.drawText(turnType.getExitOut() + "", centerText.x,
centerText.y - textPaint.ascent() / 2, textPaint);
centerText.y - (textPaint.descent() + textPaint.ascent()) / 2, textPaint);
}
}
}