From eb69d46e705906142f5c814f31c892282f4b583c Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Mon, 29 Mar 2004 18:34:33 +0000 Subject: [PATCH] BestSize is ok for built-ins git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26467 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/mac/carbon/window.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/mac/carbon/window.cpp b/src/mac/carbon/window.cpp index e97959731f..01521d2df9 100644 --- a/src/mac/carbon/window.cpp +++ b/src/mac/carbon/window.cpp @@ -1373,7 +1373,9 @@ void wxWindowMac::DoMoveWindow(int x, int y, int width, int height) wxSize wxWindowMac::DoGetBestSize() const { - /* + if ( m_macIsUserPane || IsTopLevel() ) + return wxWindowBase::DoGetBestSize() ; + Rect bestsize = { 0 , 0 , 0 , 0 } ; short baselineoffset ; int bestWidth, bestHeight ; @@ -1405,8 +1407,7 @@ wxSize wxWindowMac::DoGetBestSize() const bestHeight = 13 ; return wxSize(bestWidth, bestHeight); - */ - return wxWindowBase::DoGetBestSize() ; +// return wxWindowBase::DoGetBestSize() ; }