From b71cfcd8ebe823aadc2a3cdcfba4ec99b7e9373e Mon Sep 17 00:00:00 2001 From: "kkoenig1@optonline.com" Date: Sun, 23 Jan 2022 06:42:41 -0500 Subject: [PATCH] - fix window position functions to call lvgl --- radio/src/thirdparty/libopenui/src/window.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/radio/src/thirdparty/libopenui/src/window.h b/radio/src/thirdparty/libopenui/src/window.h index bbeeb9b25..925632393 100644 --- a/radio/src/thirdparty/libopenui/src/window.h +++ b/radio/src/thirdparty/libopenui/src/window.h @@ -187,12 +187,16 @@ class Window void setRect(rect_t value) { rect = value; + lv_obj_set_pos(lvobj, rect.x, rect.y); + lv_obj_set_width(lvobj, rect.w); + lv_obj_set_height(lvobj, rect.h); invalidate(); } void setWidth(coord_t value) { rect.w = value; + lv_obj_set_width(lvobj, rect.w); invalidate(); } @@ -200,11 +204,14 @@ class Window { rect.x = (parent->width() - width()) / 2; rect.y = (parent->height() - height()) / 2; + lv_obj_set_pos(lvobj, rect.x, rect.y); } void setHeight(coord_t value) { rect.h = value; + lv_obj_set_height(lvobj, rect.h); + if (windowFlags & FORWARD_SCROLL) innerHeight = value; else if (innerHeight <= value) { @@ -216,12 +223,14 @@ class Window void setLeft(coord_t x) { rect.x = x; + lv_obj_set_pos(lvobj, rect.x, rect.y); invalidate(); } void setTop(coord_t y) { rect.y = y; + lv_obj_set_pos(lvobj, rect.x, rect.y); invalidate(); }