summaryrefslogtreecommitdiff
path: root/frontends/cocoa/ScrollableView.m
diff options
context:
space:
mode:
Diffstat (limited to 'frontends/cocoa/ScrollableView.m')
-rw-r--r--frontends/cocoa/ScrollableView.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/frontends/cocoa/ScrollableView.m b/frontends/cocoa/ScrollableView.m
index c495b1d93..6f20bfe28 100644
--- a/frontends/cocoa/ScrollableView.m
+++ b/frontends/cocoa/ScrollableView.m
@@ -38,7 +38,7 @@
- (void)adjustFrame
{
- NSSize frameSize = [[self superview] frame].size;
+ NSSize frameSize = self.enclosingScrollView.contentSize;
[self setFrameSize:NSMakeSize(MAX(self.minimumSize.width, frameSize.width),
MAX(self.minimumSize.height, frameSize.height))];
}