corrected content vs structure calculation
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26595 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
e2c28de23e
commit
34952e03e2
@ -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 ) ;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user