From 43886e1fdf1fbb0502e677a19a4dcf2ea2b4d224 Mon Sep 17 00:00:00 2001 From: Bertrand Songis Date: Wed, 20 May 2020 11:13:01 +0200 Subject: [PATCH] Expansion panel fix --- radio/src/thirdparty/libopenui/src/expansion_panel.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/radio/src/thirdparty/libopenui/src/expansion_panel.h b/radio/src/thirdparty/libopenui/src/expansion_panel.h index 0a9e7bb3c..26ce33af4 100644 --- a/radio/src/thirdparty/libopenui/src/expansion_panel.h +++ b/radio/src/thirdparty/libopenui/src/expansion_panel.h @@ -72,9 +72,11 @@ class ExpansionPanel: public FormGroup { void updateHeight() { + coord_t previousHeight = height(); + coord_t previousBottom = bottom(); body->adjustInnerHeight(); coord_t newHeight = (isOpen ? header->height() + body->height() : header->height()); - parent->moveWindowsTop(bottom(), newHeight - height()); + parent->moveWindowsTop(previousBottom, newHeight - previousHeight); setHeight(newHeight); }