Don't change wxCompositeWindow size from SetLayoutDirection()
Remove wxSIZE_AUTO from the SetSize() call, this was completely unnecessary and unexpectedly (and wrongly) resized composite windows managed by sizers as SetLayoutDirection() side-effect.
This commit is contained in:
@@ -109,7 +109,7 @@ public:
|
|||||||
// SetLayoutDirection(wxLayout_Default) wouldn't result in a re-layout
|
// SetLayoutDirection(wxLayout_Default) wouldn't result in a re-layout
|
||||||
// neither, but then we're not supposed to be called with it at all.
|
// neither, but then we're not supposed to be called with it at all.
|
||||||
if ( dir != wxLayout_Default )
|
if ( dir != wxLayout_Default )
|
||||||
this->SetSize(-1, -1, -1, -1, wxSIZE_AUTO | wxSIZE_FORCE);
|
this->SetSize(-1, -1, -1, -1, wxSIZE_FORCE);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if wxUSE_TOOLTIPS
|
#if wxUSE_TOOLTIPS
|
||||||
|
Reference in New Issue
Block a user