mirror of
https://github.com/MarekZegare4/MeshCore-Solo.git
synced 2026-10-09 03:06:39 +00:00
fix(ui-lvgl): popups no longer shrink when their list is pulled past its end
LVGL 9.2.2 measures a SIZE_CONTENT box from its children as scrolled, so an elastic pull past the end of a capped popup list shrank it by the overshoot, again on every pull. lvgl_patches.py fixes calc_content_height in the downloaded library (a build middleware for PlatformIO, called directly by the sim's build_wasm.sh). The five popups that each built the same panel now share popupOpen() (fit to content / full height / under the status bar). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -246,6 +246,7 @@ if [ "$SIM_UI" = "lvgl" ]; then
|
||||
# would shadow the libc <features.h> the C headers include.
|
||||
C_FLAGS=(-std=gnu99 "${OPT_FLAGS[@]}" "${DEFINES[@]}" "-I$LVGL_DIR" -Iexamples/companion_radio/ui-lvgl)
|
||||
LV_OBJ_DIR="$OUT_DIR/obj_lvgl"
|
||||
python3 examples/companion_radio/ui-lvgl/lvgl_patches.py "$LVGL_DIR" # as the firmware build does
|
||||
C_SRCS=()
|
||||
while IFS= read -r f; do C_SRCS+=("$f"); done < <(
|
||||
find "$LVGL_DIR/src" -name '*.c' | sed "s|^$REPO_ROOT/||" | sort
|
||||
|
||||
Reference in New Issue
Block a user