diff options
| author | Pietro Gagliardi <[email protected]> | 2014-10-24 19:13:18 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-10-24 19:13:18 -0400 |
| commit | 643875c8827194e0d270ee29db7c03fa28d4c08e (patch) | |
| tree | efa6bdadb47aba1778d9854b18f58b172f8312e8 /container_darwin.m | |
| parent | eb57383434fefe2bc4be3f395fea63a3e41ad0f2 (diff) | |
Used the alignment rect instead of the frame for laying out and sizing controls on Mac OS X. Also updated the future plans document.
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]; } |
