diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2021-08-21 20:42:04 +0200 |
---|---|---|
committer | BenBE <BenBE@geshi.org> | 2021-08-22 10:40:59 +0200 |
commit | b9e69223d02287f75c24c3f5be869a04979e5b17 (patch) | |
tree | a439a130dd89a6d141e6cdf43eb338427104679b /MetersPanel.c | |
parent | edc3de7cb5970dcc7203042ff6833f2b42e27449 (diff) |
ScreenManager: reduce ScreenManager_resize
The main change is the header hight being not included in y1.
This is important if a sub-manager gets resized, e.g. a resize while
editing the Settings or in a pickFromVector selection, and afterwards,
then the sub-manager is closed, the super-ScreenManager gets resized, it
uses the correct header hight.
The header hight might have been changed since the last resize of the
super-manager in the Settings by adding/removing some meters.
This fixes new meters being hidden after added at runtime after a resize
in the main window.
Diffstat (limited to 'MetersPanel.c')
-rw-r--r-- | MetersPanel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/MetersPanel.c b/MetersPanel.c index d0ad9389..ccf8d0ed 100644 --- a/MetersPanel.c +++ b/MetersPanel.c @@ -186,7 +186,7 @@ static HandlerResult MetersPanel_eventHandler(Panel* super, int ch) { this->settings->changed = true; Header_calculateHeight(header); Header_draw(header); - ScreenManager_resize(this->scr, this->scr->x1, header->height, this->scr->x2, this->scr->y2); + ScreenManager_resize(this->scr); } return result; } |