diff options
author | mkosiba@chromium.org <mkosiba@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-03-25 16:21:34 +0000 |
---|---|---|
committer | mkosiba@chromium.org <mkosiba@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-03-25 16:21:34 +0000 |
commit | 9352bccb8f9c3eabe866c7f62bde17ccd0f78df4 (patch) | |
tree | 463b8d5e0e35d07e3d5d4b31d4c355f867b4ec22 /android_webview/browser | |
parent | ba7541c18cf24637b0b3536c28cf4c0201727286 (diff) | |
download | chromium_src-9352bccb8f9c3eabe866c7f62bde17ccd0f78df4.zip chromium_src-9352bccb8f9c3eabe866c7f62bde17ccd0f78df4.tar.gz chromium_src-9352bccb8f9c3eabe866c7f62bde17ccd0f78df4.tar.bz2 |
[android_webview] Update max scroll offset from page scale change.
The maximum scroll offset is derived from page scale, so it should
be updated whenever that changes.
BUG=351677
NOTRY=true
Review URL: https://codereview.chromium.org/210213002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@259227 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'android_webview/browser')
-rw-r--r-- | android_webview/browser/browser_view_renderer.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/android_webview/browser/browser_view_renderer.cc b/android_webview/browser/browser_view_renderer.cc index 7944934..5bbc1ab 100644 --- a/android_webview/browser/browser_view_renderer.cc +++ b/android_webview/browser/browser_view_renderer.cc @@ -444,6 +444,7 @@ void BrowserViewRenderer::SetRootLayerPageScaleFactorAndLimits( DCHECK_GT(page_scale_factor_, 0); client_->SetPageScaleFactorAndLimits( page_scale_factor, min_page_scale_factor, max_page_scale_factor); + client_->SetMaxContainerViewScrollOffset(max_scroll_offset()); } void BrowserViewRenderer::SetRootLayerScrollableSize( |