Update layout of wxCompositeWindow on layout direction change.
The children layout will almost always depend on the layout direction, so redo it when the latter changes. In particular, this fixes changing the layout of wxSpinCtrlDouble under MSW. See #11583. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77756 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -99,6 +99,10 @@ public:
|
||||
BaseWindowClass::SetLayoutDirection(dir);
|
||||
|
||||
SetForAllParts(&wxWindowBase::SetLayoutDirection, dir);
|
||||
|
||||
// The child layout almost invariably depends on the layout direction,
|
||||
// so redo it when it changes.
|
||||
SetSize(-1, -1, -1, -1, wxSIZE_AUTO | wxSIZE_FORCE);
|
||||
}
|
||||
|
||||
#if wxUSE_TOOLTIPS
|
||||
|
Reference in New Issue
Block a user