Expansion panel fix

This commit is contained in:
Bertrand Songis
2020-05-20 11:13:01 +02:00
parent 04faa8a400
commit 43886e1fdf
+3 -1
View File
@@ -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);
}