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 /control_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 'control_darwin.m')
| -rw-r--r-- | control_darwin.m | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/control_darwin.m b/control_darwin.m index 4ff8777..54588a1 100644 --- a/control_darwin.m +++ b/control_darwin.m @@ -37,7 +37,8 @@ struct xsize controlPreferredSize(id control) c = toNSControl(control); [c sizeToFit]; - r = [c frame]; + // use alignmentRect here instead of frame because we'll be resizing based on that + r = [c alignmentRectForFrame:[c frame]]; s.width = (intptr_t) r.size.width; s.height = (intptr_t) r.size.height; return s; |
