From f24d204984fbcc5dc572cc96740b5dc310abfebd Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 21 Sep 2014 01:41:27 +0000 Subject: [PATCH] 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 --- include/wx/compositewin.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/wx/compositewin.h b/include/wx/compositewin.h index f3ead9a14c..9236229fbc 100644 --- a/include/wx/compositewin.h +++ b/include/wx/compositewin.h @@ -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