Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4730)

Unified Diff: chrome/browser/resources/ntp_android/ntp_android.js

Issue 68723003: Make chrome/ be documentElement/body agnostic with regards to scrollTop/Left (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@issue_305800
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/resources/ntp_android/new_tab.html ('k') | chrome/browser/resources/options/options_page.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/ntp_android/ntp_android.js
diff --git a/chrome/browser/resources/ntp_android/ntp_android.js b/chrome/browser/resources/ntp_android/ntp_android.js
index ad62da041f40a9ee09e7da6ae4773ab1205ab1a2..313884e317177e19e81b7f5b2c30589ffddfbf95 100644
--- a/chrome/browser/resources/ntp_android/ntp_android.js
+++ b/chrome/browser/resources/ntp_android/ntp_android.js
@@ -2153,7 +2153,7 @@ cr.define('ntp', function() {
currentPane = pane;
currentPaneIndex = paneIndex;
- document.documentElement.scrollTop = 0;
+ setScrollTopForDocument(document, 0);
var panelPrefix = sectionPrefixes[paneIndex];
var title = templateData[panelPrefix + '_document_title'];
« no previous file with comments | « chrome/browser/resources/ntp_android/new_tab.html ('k') | chrome/browser/resources/options/options_page.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698