making sure toplevel default width/sizes are used
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59514 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -73,7 +73,10 @@ bool wxTopLevelWindowMac::Create(wxWindow *parent,
|
||||
long style,
|
||||
const wxString& name)
|
||||
{
|
||||
if ( !wxNonOwnedWindow::Create(parent, id, pos, size, style, name) )
|
||||
int w = WidthDefault(size.x);
|
||||
int h = HeightDefault(size.y);
|
||||
|
||||
if ( !wxNonOwnedWindow::Create(parent, id, pos, wxSize(w,h), style, name) )
|
||||
return false;
|
||||
|
||||
wxWindow::SetLabel( title ) ;
|
||||
|
Reference in New Issue
Block a user