fix(color): popup menu not scaling to screen height consistently (#7511)

This commit is contained in:
philmoz
2026-07-10 13:53:38 +10:00
committed by GitHub
parent 9326a202b2
commit a0fcc8e069
+1 -1
View File
@@ -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)