summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--frontends/cocoa/ScrollableView.m7
1 files changed, 2 insertions, 5 deletions
diff --git a/frontends/cocoa/ScrollableView.m b/frontends/cocoa/ScrollableView.m
index 130fce201..6f20bfe28 100644
--- a/frontends/cocoa/ScrollableView.m
+++ b/frontends/cocoa/ScrollableView.m
@@ -38,17 +38,14 @@
- (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))];
}
- (void)frameChangeNotification:(NSNotification *)note
{
- // TODO: Correctly handle window resizing.
- // Removing this call is a quick hack to avoid an endless layout loop due to appearing/disappearing
- // scroll bars.
- //[self adjustFrame];
+ [self adjustFrame];
}
- (void)viewDidMoveToSuperview