diff options
| author | Pietro Gagliardi <[email protected]> | 2014-08-05 22:02:57 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-08-05 22:02:57 -0400 |
| commit | 3dcdd055620e76a3606e6d525aed7cf86595a279 (patch) | |
| tree | c735cb4732b23aaa191891d1e594040de46c2db5 /redo/control_darwin.m | |
| parent | 46bb97cb7570fac3103144da461aa01b9b07a821 (diff) | |
Removed the NSMakeRect(0, 0, 100, 100) dummy init rect from the Mac OS X backend; NSZeroRect works fine for this after all. Thanks to jer in irc.freenode.net/#macdev.
Diffstat (limited to 'redo/control_darwin.m')
| -rw-r--r-- | redo/control_darwin.m | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/redo/control_darwin.m b/redo/control_darwin.m index 10fef8e..a939583 100644 --- a/redo/control_darwin.m +++ b/redo/control_darwin.m @@ -10,7 +10,7 @@ id newScrollView(id content) { NSScrollView *sv; - sv = [[NSScrollView alloc] initWithFrame:NSMakeRect(0, 0, 100, 100)]; + sv = [[NSScrollView alloc] initWithFrame:NSZeroRect]; [sv setDocumentView:toNSView(content)]; [sv setHasHorizontalScroller:YES]; [sv setHasVerticalScroller:YES]; |
