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.
This commit is contained in:
John Scipione
2012-11-12 22:03:26 -05:00
parent 652a115c1c
commit d1e438cad1
+2
View File
@@ -515,6 +515,8 @@ TBarView::PlaceApplicationBar()
SizeWindow(screenFrame);
PositionWindow(screenFrame);
fExpando->DoLayout();
// force menu to autosize
CheckForScrolling();
Window()->UpdateIfNeeded();