respect minimal wxTLW size in wxUniv
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14113 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -269,6 +269,28 @@ long wxTopLevelWindow::HitTest(const wxPoint& pt) const
|
||||
return m_renderer->HitTestFrame(rect, pt+GetClientAreaOrigin(), GetDecorationsStyle());
|
||||
}
|
||||
|
||||
int wxTopLevelWindow::GetMinWidth() const
|
||||
{
|
||||
if ( ms_drawDecorations )
|
||||
{
|
||||
return wxMax(wxTopLevelWindowNative::GetMinWidth(),
|
||||
m_renderer->GetFrameMinSize(GetDecorationsStyle()).x);
|
||||
}
|
||||
else
|
||||
return wxTopLevelWindowNative::GetMinWidth();
|
||||
}
|
||||
|
||||
int wxTopLevelWindow::GetMinHeight() const
|
||||
{
|
||||
if ( ms_drawDecorations )
|
||||
{
|
||||
return wxMax(wxTopLevelWindowNative::GetMinHeight(),
|
||||
m_renderer->GetFrameMinSize(GetDecorationsStyle()).y);
|
||||
}
|
||||
else
|
||||
return wxTopLevelWindowNative::GetMinHeight();
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// icons
|
||||
// ----------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user