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:
@@ -913,16 +913,20 @@ void wxTopLevelWindowGTK::DoGetClientSize( int *width, int *height ) const
|
||||
{
|
||||
wxASSERT_MSG( (m_widget != NULL), wxT("invalid frame") );
|
||||
|
||||
wxWindow::DoGetClientSize( width, height );
|
||||
if (height)
|
||||
{
|
||||
*height = m_height;
|
||||
|
||||
// mini edge
|
||||
*height -= m_miniEdge*2 + m_miniTitle;
|
||||
}
|
||||
if (width)
|
||||
{
|
||||
*width = m_width;
|
||||
|
||||
*width -= m_miniEdge*2;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void wxTopLevelWindowGTK::DoSetClientSize( int width, int height )
|
||||
|
Reference in New Issue
Block a user