]> git.saurik.com Git - wxWidgets.git/commit - src/common/wincmn.cpp
Let wxWindow::Fit[Inside]() work even for windows without children.
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 19 Sep 2012 07:50:07 +0000 (07:50 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 19 Sep 2012 07:50:07 +0000 (07:50 +0000)
commit089ef0bef7a1267995faf61d7eaf031d39a27fad
treed72775f2f6c721878fbc5807b0880fe450f05d73
parent4801d9613ffcfcb967205ea4a80012666e37650b
Let wxWindow::Fit[Inside]() work even for windows without children.

The best [virtual] size of the window is usually determined by its children
but it's also possible to have a min size constraint set on the window sizer
so set the window to its best size in Fit() independently of whether it has
children or not.

Closes #14668.

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