diff options
author | Grant Paul <chpwn@chpwn.com> | 2010-10-16 00:54:01 -0700 |
---|---|---|
committer | Grant Paul <chpwn@chpwn.com> | 2010-10-16 00:55:04 -0700 |
commit | 1edcdccff91b5e32f9fcf40cfcbd00c98bb237ed (patch) | |
tree | 1aecd7344ef521817fa173997091d74de70a94fe /UICaboodle | |
parent | 3c216e5ece97fb293ef6ebc0ad38e0513d736c22 (diff) |
Use NSMakeSize rather than CGSizeMake for creating a NSSize -- if it's stored in a NSValue using -valueWithSize:, then it's an NSSize, not a CGSize. It's a CGSize if you use -valueWithCGSize:.
Diffstat (limited to 'UICaboodle')
-rwxr-xr-x[-rw-r--r--] | UICaboodle/BrowserView.mm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/UICaboodle/BrowserView.mm b/UICaboodle/BrowserView.mm index ff39763..9703227 100644..100755 --- a/UICaboodle/BrowserView.mm +++ b/UICaboodle/BrowserView.mm @@ -383,7 +383,7 @@ static Class $UIWebBrowserView; if ([scroller_ respondsToSelector:@selector(setScrollerIndicatorSubrect:)]) [scroller_ setScrollerIndicatorSubrect:subrect]; - [document_ setValue:[NSValue valueWithSize:CGSizeMake(subrect.size.width, subrect.size.height)] forGestureAttribute:UIGestureAttributeVisibleSize]; + [document_ setValue:[NSValue valueWithSize:NSMakeSize(subrect.size.width, subrect.size.height)] forGestureAttribute:UIGestureAttributeVisibleSize]; CGSize size(size_); size.height += extra; |