Don't use wxWindows::DoGetClientSize() from

wxTopLevelWindow as border with should not
    be taken into account here.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40970 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
2006-09-02 22:21:19 +00:00
parent 77aee8713e
commit b2fcdf2b61

View File

@@ -913,16 +913,20 @@ void wxTopLevelWindowGTK::DoGetClientSize( int *width, int *height ) const
{ {
wxASSERT_MSG( (m_widget != NULL), wxT("invalid frame") ); wxASSERT_MSG( (m_widget != NULL), wxT("invalid frame") );
wxWindow::DoGetClientSize( width, height );
if (height) if (height)
{ {
*height = m_height;
// mini edge // mini edge
*height -= m_miniEdge*2 + m_miniTitle; *height -= m_miniEdge*2 + m_miniTitle;
} }
if (width) if (width)
{ {
*width = m_width;
*width -= m_miniEdge*2; *width -= m_miniEdge*2;
} }
} }
void wxTopLevelWindowGTK::DoSetClientSize( int width, int height ) void wxTopLevelWindowGTK::DoSetClientSize( int width, int height )