Space out multiple edit lines a bit

This commit is contained in:
Scott Lahteine 2018-11-27 15:50:44 -06:00
parent cd88ea2106
commit 01b5c810d5

View File

@ -362,7 +362,7 @@ void MarlinUI::clear_lcd() { } // Automatically cleared by Picture Loop
#endif #endif
// Center the label and value lines on the middle line // Center the label and value lines on the middle line
uint8_t baseline = extra_row ? (LCD_PIXEL_HEIGHT) / 2 uint8_t baseline = extra_row ? (LCD_PIXEL_HEIGHT) / 2 - 1
: (LCD_PIXEL_HEIGHT + EDIT_FONT_ASCENT) / 2; : (LCD_PIXEL_HEIGHT + EDIT_FONT_ASCENT) / 2;
// Assume the label is alpha-numeric (with a descender) // Assume the label is alpha-numeric (with a descender)
@ -377,7 +377,7 @@ void MarlinUI::clear_lcd() { } // Automatically cleared by Picture Loop
lcd_put_wchar(':'); lcd_put_wchar(':');
if (extra_row) { if (extra_row) {
// Assume the value is numeric (with no descender) // Assume the value is numeric (with no descender)
baseline += EDIT_FONT_ASCENT; baseline += EDIT_FONT_ASCENT + 2;
onpage = PAGE_CONTAINS(baseline - (EDIT_FONT_ASCENT - 1), baseline); onpage = PAGE_CONTAINS(baseline - (EDIT_FONT_ASCENT - 1), baseline);
} }
if (onpage) { if (onpage) {