Updates for scrolling behavior in webview.

This commit is contained in:
Ross Boucher committed 2010-05-05 14:05:09 -07:00
1 parent 5044ce4236
commit 90975c96f9
1 file changed
+6 -1
+6 -1
View File
@@ -181,7 +181,8 @@ CPWebViewScrollNative = 2;
}
else
{
[_frameView setFrameSize:[_scrollView contentSize]];
var visibleRect = [_frameView visibleRect];
[_frameView setFrameSize:CGSizeMake(CGRectGetMaxX(visibleRect), CGRectGetMaxY(visibleRect))];
// try to get the document size so we can correctly set the frame
var win = null;
@@ -203,6 +204,8 @@ CPWebViewScrollNative = 2;
[_frameView setFrameSize:CGSizeMake(800, 1600)];
}
[_frameView scrollRectToVisible:visibleRect];
}
}
}
@@ -256,6 +259,8 @@ CPWebViewScrollNative = 2;
[self _setScrollMode:CPWebViewScrollAppKit];
[_frameView setFrameSize:[_scrollView contentSize]];
[self _startedLoading];
_ignoreLoadStart = YES;