fix(color): label at the top & bottom of the page of Lua scripts may not be visible when scrolling (#7079)

This commit is contained in:
philmoz
2026-02-09 09:39:41 +10:00
committed by GitHub
parent dd931bc31b
commit cdd5fd5178
2 changed files with 8 additions and 7 deletions
-1
View File
@@ -2482,7 +2482,6 @@ void LvglWidgetPage::build(lua_State *L)
showBackButton, prevActionFunction != LUA_REFNIL, nextActionFunction != LUA_REFNIL);
window = page->getBody();
window->setWindowFlag(NO_FORCED_SCROLL);
window->setScrollHandler([=](coord_t x, coord_t y) { pcallFuncWith2Int(L, scrolledFunction, 0, x, y); });
if (setFlex()) {
lv_flex_align_t align1 = (align.flags & RIGHT) ? LV_FLEX_ALIGN_END : (align.flags & CENTERED) ? LV_FLEX_ALIGN_CENTER : LV_FLEX_ALIGN_START;