fix(color): popup menu not scaling to screen height consistently (#7511)
This commit is contained in:
@@ -293,6 +293,7 @@ class MenuWindowContent : public NavWindow
|
||||
NavWindow(parent, rect_t{}, menu_content_create)
|
||||
{
|
||||
setWindowFlag(OPAQUE);
|
||||
lv_obj_set_style_max_height(lvobj, LCD_H - PAD_LARGE * 2, LV_PART_MAIN);
|
||||
|
||||
coord_t w = (popupWidth > 0) ? popupWidth : MENUS_WIDTH;
|
||||
|
||||
@@ -306,7 +307,6 @@ class MenuWindowContent : public NavWindow
|
||||
header->hide();
|
||||
|
||||
body = new MenuBody(this, rect_t{0, 0, w, LV_SIZE_CONTENT});
|
||||
lv_obj_set_style_max_height(body->getLvObj(), LCD_H * 0.8, LV_PART_MAIN);
|
||||
}
|
||||
|
||||
virtual void setTitle(const std::string& text)
|
||||
|
||||
Reference in New Issue
Block a user