From cf8b7c568d1b537f833937ecf8dba19df379121e Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Wed, 9 Dec 2020 20:32:47 +0200 Subject: SidebarWidget: Fixed layout issue After launching with the sidebar closed, it would open with an incorrect height. --- src/ui/sidebarwidget.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/ui/sidebarwidget.c') 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 * invalidate_ListWidget(d->list); } arrange_Widget(w->parent); + /* BUG: Rearranging because the arrange above didn't fully resolve the height. */ + arrange_Widget(w); updateSize_DocumentWidget(document_App()); if (isVisible_Widget(w)) { updateItems_SidebarWidget_(d); -- cgit v1.2.3