diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-12-09 20:32:47 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-12-09 20:32:47 +0200 |
commit | cf8b7c568d1b537f833937ecf8dba19df379121e (patch) | |
tree | 431128d57e75ff90de673c84afc75c107231e837 /src/ui/sidebarwidget.c | |
parent | 8079c9981cfd2d7833804fc847e8b5d6edcb0942 (diff) |
SidebarWidget: Fixed layout issue
After launching with the sidebar closed, it would open with an incorrect height.
Diffstat (limited to 'src/ui/sidebarwidget.c')
-rw-r--r-- | src/ui/sidebarwidget.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ui/sidebarwidget.c b/src/ui/sidebarwidget.c index e6144744..a140718b 100644 --- a/src/ui/sidebarwidget.c +++ b/src/ui/sidebarwidget.c | |||
@@ -630,6 +630,8 @@ static iBool handleSidebarCommand_SidebarWidget_(iSidebarWidget *d, const char * | |||
630 | invalidate_ListWidget(d->list); | 630 | invalidate_ListWidget(d->list); |
631 | } | 631 | } |
632 | arrange_Widget(w->parent); | 632 | arrange_Widget(w->parent); |
633 | /* BUG: Rearranging because the arrange above didn't fully resolve the height. */ | ||
634 | arrange_Widget(w); | ||
633 | updateSize_DocumentWidget(document_App()); | 635 | updateSize_DocumentWidget(document_App()); |
634 | if (isVisible_Widget(w)) { | 636 | if (isVisible_Widget(w)) { |
635 | updateItems_SidebarWidget_(d); | 637 | updateItems_SidebarWidget_(d); |