prevent explicitly set client size from being changed when frame extents become known
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51190 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -955,6 +955,14 @@ void wxTopLevelWindowGTK::DoSetSize( int x, int y, int width, int height, int si
|
||||
}
|
||||
}
|
||||
|
||||
void wxTopLevelWindowGTK::DoSetClientSize(int width, int height)
|
||||
{
|
||||
if (m_deferShow && !m_isShown)
|
||||
// Since client size is being explicitly set, don't change it later
|
||||
m_deferShow = false;
|
||||
wxTopLevelWindowBase::DoSetClientSize(width, height);
|
||||
}
|
||||
|
||||
void wxTopLevelWindowGTK::DoGetClientSize( int *width, int *height ) const
|
||||
{
|
||||
wxASSERT_MSG(m_widget, wxT("invalid frame"));
|
||||
|
||||
Reference in New Issue
Block a user