SetSize with all -1 was returning too soon in some cases
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26456 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1417,7 +1417,7 @@ void wxWindowMac::DoSetSize(int x, int y, int width, int height, int sizeFlags)
|
||||
|
||||
// ... and don't do anything (avoiding flicker) if it's already ok
|
||||
if ( x == currentX && y == currentY &&
|
||||
width == currentW && height == currentH )
|
||||
width == currentW && height == currentH && ( height != -1 && width != -1 ) )
|
||||
{
|
||||
// TODO REMOVE
|
||||
MacRepositionScrollBars() ; // we might have a real position shift
|
||||
|
Reference in New Issue
Block a user