Use status full, not client, size to determine frame client size in wxMSW.
We need to account for the full size of status bar, including potential borders, when calculating the client size of the frame containing it. Closes #12697. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66225 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -295,7 +295,7 @@ void wxFrame::DoGetClientSize(int *x, int *y) const
|
|||||||
wxStatusBar *statbar = GetStatusBar();
|
wxStatusBar *statbar = GetStatusBar();
|
||||||
if ( statbar && statbar->IsShown() )
|
if ( statbar && statbar->IsShown() )
|
||||||
{
|
{
|
||||||
*y -= statbar->GetClientSize().y;
|
*y -= statbar->GetSize().y;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif // wxUSE_STATUSBAR
|
#endif // wxUSE_STATUSBAR
|
||||||
|
Reference in New Issue
Block a user