]> git.saurik.com Git - wxWidgets.git/commitdiff
Must use GetAdjustedBestSize for getting child window sizes, since
authorJulian Smart <julian@anthemion.co.uk>
Wed, 2 Mar 2005 10:44:17 +0000 (10:44 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Wed, 2 Mar 2005 10:44:17 +0000 (10:44 +0000)
DoGetBestSize returns standard control size e.g. 100x100 on Windows,
and not an explicit size passed to it. This may be because the splitter
window isn't a true sizer and m_bestSizeCache isn't updated properly
(see window.h, GetBestSize: IsFullySpecified fails.)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32557 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/splitter.cpp

index 7c5d2354bdf3a0647d8976e7411a04b43e3117b6..d39356302cad962f8f42fc7299190a1f4509ca3e 100644 (file)
@@ -877,9 +877,9 @@ wxSize wxSplitterWindow::DoGetBestSize() const
     // get best sizes of subwindows
     wxSize size1, size2;
     if ( m_windowOne )
-        size1 = m_windowOne->GetBestSize();
+        size1 = m_windowOne->GetAdjustedBestSize();
     if ( m_windowTwo )
-        size2 = m_windowTwo->GetBestSize();
+        size2 = m_windowTwo->GetAdjustedBestSize();
 
     // sum them
     //