mixed height and width
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26488 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -589,11 +589,11 @@ static pascal OSStatus wxMacTopLevelWindowEventHandler( EventHandlerCallRef hand
|
|||||||
}
|
}
|
||||||
if ( toplevelWindow->GetMaxWidth() != -1 && adjustR.GetWidth() > toplevelWindow->GetMaxWidth() )
|
if ( toplevelWindow->GetMaxWidth() != -1 && adjustR.GetWidth() > toplevelWindow->GetMaxWidth() )
|
||||||
adjustR.SetWidth( toplevelWindow->GetMaxWidth() ) ;
|
adjustR.SetWidth( toplevelWindow->GetMaxWidth() ) ;
|
||||||
if ( toplevelWindow->GetMaxHeight() != -1 && adjustR.GetWidth() > toplevelWindow->GetMaxHeight() )
|
if ( toplevelWindow->GetMaxHeight() != -1 && adjustR.GetHeight() > toplevelWindow->GetMaxHeight() )
|
||||||
adjustR.SetHeight( toplevelWindow->GetMaxHeight() ) ;
|
adjustR.SetHeight( toplevelWindow->GetMaxHeight() ) ;
|
||||||
if ( toplevelWindow->GetMinWidth() != -1 && adjustR.GetWidth() < toplevelWindow->GetMinWidth() )
|
if ( toplevelWindow->GetMinWidth() != -1 && adjustR.GetWidth() < toplevelWindow->GetMinWidth() )
|
||||||
adjustR.SetWidth( toplevelWindow->GetMinWidth() ) ;
|
adjustR.SetWidth( toplevelWindow->GetMinWidth() ) ;
|
||||||
if ( toplevelWindow->GetMinHeight() != -1 && adjustR.GetWidth() < toplevelWindow->GetMinHeight() )
|
if ( toplevelWindow->GetMinHeight() != -1 && adjustR.GetHeight() < toplevelWindow->GetMinHeight() )
|
||||||
adjustR.SetHeight( toplevelWindow->GetMinHeight() ) ;
|
adjustR.SetHeight( toplevelWindow->GetMinHeight() ) ;
|
||||||
Rect adjustedRect = { adjustR.y , adjustR.x , adjustR.y + adjustR.height , adjustR.x + adjustR.width } ;
|
Rect adjustedRect = { adjustR.y , adjustR.x , adjustR.y + adjustR.height , adjustR.x + adjustR.width } ;
|
||||||
if ( !EqualRect( &newRect , &adjustedRect ) )
|
if ( !EqualRect( &newRect , &adjustedRect ) )
|
||||||
|
Reference in New Issue
Block a user