Refs #684. Fixed: sizing problem when revealing hidden CPWebView.

This commit is contained in:
Alexander Ljungberg committed 2011-05-09 00:59:45 -04:00
1 parent cc9bcabf38
commit c42295f0c7
1 file changed
+6
+6
View File
@@ -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)