limit TLW size to display size in wxSizer::Fit() instead of doing it in wxTLW::GetMaxSize(), this allows creating or manually resizing TLWs to be larger than the display while still avoiding making them too big by default
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43617 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -173,22 +173,6 @@ void wxTopLevelWindowBase::GetRectForTopLevelChildren(int *x, int *y, int *w, in
|
||||
GetSize(w,h);
|
||||
}
|
||||
|
||||
wxSize wxTopLevelWindowBase::GetMaxSize() const
|
||||
{
|
||||
wxSize size = wxWindow::GetMaxSize();
|
||||
|
||||
int w, h;
|
||||
wxClientDisplayRect(NULL, NULL, &w, &h );
|
||||
|
||||
if ( size.GetWidth() == wxDefaultCoord )
|
||||
size.SetWidth(w);
|
||||
|
||||
if ( size.GetHeight() == wxDefaultCoord )
|
||||
size.SetHeight(h);
|
||||
|
||||
return size;
|
||||
}
|
||||
|
||||
/* static */
|
||||
wxSize wxTopLevelWindowBase::GetDefaultSize()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user