Fix Textbounds getBounds, getMultilineBounds, getWrappedBounds

This commit is contained in:
Anthony Calosa
2019-09-09 16:10:51 +08:00
parent af6c826cc4
commit 17b578ae9c
3 changed files with 176 additions and 11 deletions

View File

@@ -513,7 +513,7 @@ public class SettingsPage extends TabPage<SettingsScreen> {
g.drawText(value.label, font, foreColor, x, y, w, h, false, Align.left, false);
value.drawPrefValue(g, font, foreColor, x, y, w, h);
h += SettingsScreen.SETTING_PADDING;//TODO: adjust settings page description bounds
h += SettingsScreen.SETTING_PADDING;
g.drawText(value.description, SettingsScreen.DESC_FONT, SettingsScreen.DESC_COLOR, x, y + h, w, totalHeight - h + SettingsScreen.getInsets(w), true, Align.left, false);
}
}