allow setting client size to work properly before window is shown
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62898 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -991,10 +991,12 @@ void wxTopLevelWindowGTK::DoSetSize( int x, int y, int width, int height, int si
|
|||||||
|
|
||||||
void wxTopLevelWindowGTK::DoSetClientSize(int width, int height)
|
void wxTopLevelWindowGTK::DoSetClientSize(int width, int height)
|
||||||
{
|
{
|
||||||
// Since client size is being explicitly set, don't change it later
|
|
||||||
m_deferShowAllowed = false;
|
|
||||||
|
|
||||||
wxTopLevelWindowBase::DoSetClientSize(width, height);
|
wxTopLevelWindowBase::DoSetClientSize(width, height);
|
||||||
|
|
||||||
|
// Since client size is being explicitly set, don't change it later
|
||||||
|
// Has to be done after calling base because it calls SetSize,
|
||||||
|
// which sets this true
|
||||||
|
m_deferShowAllowed = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxTopLevelWindowGTK::DoGetClientSize( int *width, int *height ) const
|
void wxTopLevelWindowGTK::DoGetClientSize( int *width, int *height ) const
|
||||||
|
Reference in New Issue
Block a user