Don't use the current size in DoGetBestSize() by default.
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 5 Oct 2009 22:58:10 +0000 (22:58 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 5 Oct 2009 22:58:10 +0000 (22:58 +0000)
commit7ccc497b9cc042f8e23be1f6c9cd48d29b4e2ca5
tree0d8e94179c37f44ec1f78dfadabcbe40d0e24e2c
parentf2be067844e48f6e821dae604fe94e687fb454c7
Don't use the current size in DoGetBestSize() by default.

Doing this means that a window which was made initially large because no other
windows were present or shown will refuse to shrink to make space for them
later even if it doesn't need to be that large. The issue was masked under MSW
and GTK because the first size event under these ports is sent so early that
the top level parent window is not realized yet and has default size of 20*20
pixels meaning that its children will cache their initial (very small) size as
their best size, but it was very visible under OS X where the initial layout
is done using the real top level window size and broke wxInfoBar showing in
the dialogs sample, for example.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62306 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/common/wincmn.cpp