diff --git a/AppKit/CPWebView.j b/AppKit/CPWebView.j index 73a88892f..d14928083 100644 --- a/AppKit/CPWebView.j +++ b/AppKit/CPWebView.j @@ -227,6 +227,12 @@ CPWebViewAppKitScrollMaxPollCount = 3; [self _resizeWebFrame]; } +- (void)viewDidUnhide +{ + // Catch up on resizing which happened while hidden. + [_frameView setFrameSize:[_scrollView contentSize]]; +} + - (void)_attachScrollEventIfNecessary { if (_effectiveScrollMode !== CPWebViewScrollAppKit)