diff options
author | gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3> | 2010-03-17 13:35:22 +0000 |
---|---|---|
committer | gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3> | 2010-03-17 13:35:22 +0000 |
commit | fb90ee6c273905ea96d551631b6ef9adbd4aefd6 (patch) | |
tree | 621c3d661aef165d8b57cc46e796451c472cce03 /AppKit/GTMUILocalizerAndLayoutTweaker.m | |
parent | 613318eefe7b5d2b00773aabf863c9452c711736 (diff) |
[Author: thomasvl]
Use the transforms needed to deal with Resolution Independence when sizing
the window.
R=avi,dmaclach
DELTA=4 (3 added, 0 deleted, 1 changed)
Diffstat (limited to 'AppKit/GTMUILocalizerAndLayoutTweaker.m')
-rw-r--r-- | AppKit/GTMUILocalizerAndLayoutTweaker.m | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/AppKit/GTMUILocalizerAndLayoutTweaker.m b/AppKit/GTMUILocalizerAndLayoutTweaker.m index a24eef1..4518ef1 100644 --- a/AppKit/GTMUILocalizerAndLayoutTweaker.m +++ b/AppKit/GTMUILocalizerAndLayoutTweaker.m @@ -350,9 +350,10 @@ static BOOL IsRightAnchored(NSView *view); [contentView setAutoresizesSubviews:NO]; } - NSRect rect = [window frame]; + NSRect rect = [contentView convertRect:[window frame] fromView:nil]; rect.size.width += delta.width; rect.size.height += delta.height; + rect = [contentView convertRect:rect toView:nil]; [window setFrame:rect display:NO]; // For some reason the content view is resizing, but some times not adjusting // its origin, so correct it manually. |