mirror of
https://github.com/MarekZegare4/MeshCore-Solo.git
synced 2026-11-01 10:21:59 +00:00
LVGL lays out children before their parent, and a new box's size is only known after a pass, so every level sized in % of the one above cost a whole extra layout pass over the screen. innerW() works the width out from the styles instead; fillWidth() sets it on infoCard, infoLine (every row), noteLabel and scrollList, and the screen body is px-wide. Display & power page: 101 -> 76 flex runs, layout 68 -> 54 ms, first frame 161 -> 146 ms; the other settings pages and Radio / Bot / Quick alike. Four passes remain: a row's text column grows beside its control, so its width is only known after the row's own layout. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>