From d3230cb7a69c18c39c0db9f4617af8a1b36552d4 Mon Sep 17 00:00:00 2001 From: Peter van Dijk Date: Sat, 14 Dec 2024 19:52:35 +0100 Subject: [PATCH] stop hardcoding parent object sizes, making us more flexible on fbdev --- src/front-lvgl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/front-lvgl.cpp b/src/front-lvgl.cpp index 03de543..e556a5c 100644 --- a/src/front-lvgl.cpp +++ b/src/front-lvgl.cpp @@ -253,7 +253,7 @@ void uithread(int _argc, char* _argv[]) lv_obj_t* row_and_logs = lv_obj_create(lv_scr_act()); lv_obj_remove_style_all(row_and_logs); lv_obj_remove_flag(row_and_logs, LV_OBJ_FLAG_SCROLLABLE); - lv_obj_set_size(row_and_logs, MY_DISP_HOR_RES, MY_DISP_VER_RES); + lv_obj_set_size(row_and_logs, lv_pct(100), lv_pct(100)); lv_obj_set_flex_flow(row_and_logs, LV_FLEX_FLOW_ROW_WRAP); /*Create a container with ROW flex direction that wraps.