Handle wxDefaultSize correctly in wxNonOwnedWindow under wxOSX.
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 11 Aug 2010 16:04:00 +0000 (16:04 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 11 Aug 2010 16:04:00 +0000 (16:04 +0000)
commite08b4823e8209dc683d0373bf4b0c24e3343ddf9
tree3786f84483a5823aee50e9a775b7b3d2eafea820
parent71a0f42d2a5606098e3e7abbb50b9bb1cd718f9e
Handle wxDefaultSize correctly in wxNonOwnedWindow under wxOSX.

Creating a wxNonOwnedWindow with default size created tiny, practically
invisible windows because the default size was only taken care of at
wxTopLevelWindow level but not in wxNonOwnedWindow itself. In particular, this
broke creation of wxMDIChildFrames with the default size as this class only
derived from wxNonOwnedWindow and not from wxTopLevelWindow under OS X. It
also probably wasn't intentional as the code did use {Width,Height}Default()
functions but they were wxWindow methods and not the wxTopLevelWindow
(confusingly and error-pronely) named the same.

Fix this, remove the now redundant checks for the default size in
wxTopLevelWindow itself and also rationalize and condense the checks for the
default position and size components in wxNonOwnedWindow::Create().

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65261 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/osx/nonownedwnd_osx.cpp
src/osx/toplevel_osx.cpp