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); }