Fixed upside-down container issues on OS X.

This commit is contained in:
Pietro Gagliardi 2015-04-29 14:21:12 -04:00
parent 35548b912a
commit d7f903373f
1 changed files with 2 additions and 1 deletions

View File

@ -93,7 +93,8 @@ static void containerResize(uiControl *cc, intmax_t x, intmax_t y, intmax_t widt
NSRect r;
r.origin.x = x;
r.origin.y = y;
// mac os x coordinate system has (0,0) in the lower-left
r.origin.y = ([[c superview] bounds].size.height - height) - y;
r.size.width = width;
r.size.height = height;
// we can safely use setFrame here since we have no alignment rect to worry about