]> git.saurik.com Git - wxWidgets.git/commitdiff
corrected content vs structure calculation
authorStefan Csomor <csomor@advancedconcepts.ch>
Sun, 4 Apr 2004 09:08:59 +0000 (09:08 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Sun, 4 Apr 2004 09:08:59 +0000 (09:08 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26595 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/toplevel.cpp

index 987aba99551064fdcd9e0e5599025eb7f7b32ddf..d598bf98330fff4b0157a1b102e8e80d34432ca6 100644 (file)
@@ -602,7 +602,7 @@ static pascal OSStatus wxMacTopLevelWindowEventHandler( EventHandlerCallRef hand
                     adjustR.SetWidth( toplevelWindow->GetMinWidth() ) ;
                 if ( toplevelWindow->GetMinHeight() != -1 && adjustR.GetHeight() < toplevelWindow->GetMinHeight() )
                     adjustR.SetHeight( toplevelWindow->GetMinHeight() ) ;
-                Rect adjustedRect = { adjustR.y + top  , adjustR.x + left , adjustR.y + adjustR.height + bottom , adjustR.x + adjustR.width  + right } ;
+                Rect adjustedRect = { adjustR.y + top  , adjustR.x + left , adjustR.y + adjustR.height - bottom , adjustR.x + adjustR.width - right } ;
                 if ( !EqualRect( &newRect , &adjustedRect ) )
                     cEvent.SetParameter( kEventParamCurrentBounds , &adjustedRect ) ;
             }