diff options
Diffstat (limited to 'container_darwin.m')
| -rw-r--r-- | container_darwin.m | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/container_darwin.m b/container_darwin.m index 1dfa7cb..b8c61b0 100644 --- a/container_darwin.m +++ b/container_darwin.m @@ -41,6 +41,8 @@ void moveControl(id c, intptr_t x, intptr_t y, intptr_t width, intptr_t height) // mac os x coordinate system has (0,0) in the lower-left v = toNSView(c); frame.origin.y = ([[v superview] bounds].size.height - frame.size.height) - frame.origin.y; + // here's the magic: what we specified was what we want the alignment rect to be; make it the actual frame + frame = [v frameForAlignmentRect:frame]; [v setFrame:frame]; } |
