summaryrefslogtreecommitdiff
path: root/frontends
diff options
context:
space:
mode:
authorSven Weidauer <sven@5sw.de>2017-12-27 21:34:05 +0100
committerSven Weidauer <sven@5sw.de>2017-12-27 21:34:05 +0100
commitf70ed78b65b9acda2569ed5ee4e8f0d7847ed615 (patch)
treeac627ebc2b7cb441c6e4e75c8cb7bfd81df8530b /frontends
parent4f7885e277eb53af1662c507c145767d699056bf (diff)
downloadnetsurf-f70ed78b65b9acda2569ed5ee4e8f0d7847ed615.tar.gz
netsurf-f70ed78b65b9acda2569ed5ee4e8f0d7847ed615.tar.bz2
Fix scroll bars.
Diffstat (limited to 'frontends')
-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