keep a minimum menu height so that the pixmaps (checkmarks) draw right in them
This commit is contained in:
parent
86af1224bd
commit
d06cedce06
1 changed files with 2 additions and 1 deletions
|
@ -250,7 +250,8 @@ int Basemenu::remove(int index) {
|
|||
|
||||
void Basemenu::update(void) {
|
||||
MenuStyle *style = screen->getMenuStyle();
|
||||
menu.item_h = style->f_font->height() + menu.bevel_w;
|
||||
menu.item_h = (style->f_font->height() < 9 ? 9 : style->f_font->height()) +
|
||||
menu.bevel_w; // 9 for the menu pixmaps (checkmarks)
|
||||
menu.title_h = style->t_font->height() + menu.bevel_w * 2;
|
||||
|
||||
if (title_vis) {
|
||||
|
|
Loading…
Reference in a new issue