From d1e438cad1c1072d0abe208f6373038b4650871f Mon Sep 17 00:00:00 2001 From: John Scipione Date: Mon, 12 Nov 2012 21:35:44 -0500 Subject: [PATCH] Force app menu to auto-layout before recomputing scroll limits. This makes Deskbar correctly calulate the scroll limits in the case when scrollbars are attached but not due to an app being added or removed for example because the icon sizes increased. --- src/apps/deskbar/BarView.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/apps/deskbar/BarView.cpp b/src/apps/deskbar/BarView.cpp index ded264be4c..726022c94b 100644 --- a/src/apps/deskbar/BarView.cpp +++ b/src/apps/deskbar/BarView.cpp @@ -515,6 +515,8 @@ TBarView::PlaceApplicationBar() SizeWindow(screenFrame); PositionWindow(screenFrame); + fExpando->DoLayout(); + // force menu to autosize CheckForScrolling(); Window()->UpdateIfNeeded();