Need to subtract the m_miniTitle to get client size, not add it.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42085 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -919,7 +919,7 @@ void wxTopLevelWindowGTK::DoGetClientSize( int *width, int *height ) const
|
|||||||
|
|
||||||
if (height)
|
if (height)
|
||||||
{
|
{
|
||||||
*height = m_height - 2 * m_miniEdge + m_miniTitle;
|
*height = m_height - 2 * m_miniEdge - m_miniTitle;
|
||||||
if (*height < 0)
|
if (*height < 0)
|
||||||
*height = 0;
|
*height = 0;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user