Provided GetBestVirtualSize and DoGetBestSize implementations for
authorJulian Smart <julian@anthemion.co.uk>
Thu, 17 Mar 2005 21:21:45 +0000 (21:21 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Thu, 17 Mar 2005 21:21:45 +0000 (21:21 +0000)
commit844adaa47ae9928450affcaaee0209cb36b9c30a
tree1f60b2c7a9c0249b8bfb32ee27fcb80ba60859d1
parent50c06297bd2a5b496a899198a5957755655ab43d
Provided GetBestVirtualSize and DoGetBestSize implementations for
generic and GTK+ wxScrolledWindow.

wxWindowBase::DoGetBestSize was returning a virtual size if there were child
controls, which was then used to set the scrolled window actual size.
Similarly, wxWindowBase::GetBestVirtualSize was returning
the actual window size; now we return the virtual size
for dimensions that have scrolling (e.g. vertical scrolling
direction), or the minimum/actual size for those that don't
(e.g. the maximum control width if there is no horizontal
scrolling).

This allows the scrolled window to be properly sized, whereas
before it would start off at the virtual size (giving
enormous layouts).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32866 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
include/wx/generic/scrolwin.h
include/wx/generic/splitter.h
include/wx/gtk/scrolwin.h
include/wx/gtk1/scrolwin.h
src/generic/scrlwing.cpp
src/generic/splitter.cpp
src/gtk/scrolwin.cpp
src/gtk1/scrolwin.cpp