Index: chrome/browser/resources/help/help_base_page.js |
diff --git a/chrome/browser/resources/help/help_base_page.js b/chrome/browser/resources/help/help_base_page.js |
index f07a9f1e0cd58df9eaf3c7ef0ce582f47325e0cf..15c3224ab43d3a6b4df66caf2f4ce0ec84592b75 100644 |
--- a/chrome/browser/resources/help/help_base_page.js |
+++ b/chrome/browser/resources/help/help_base_page.js |
@@ -115,13 +115,14 @@ cr.define('help', function() { |
* @private |
*/ |
freeze_: function(freeze) { |
+ var scrollLeft = scrollLeftForDocument(document); |
if (freeze) { |
- this.lastScrollTop = document.documentElement.scrollTop; |
+ this.lastScrollTop = scrollTopForDocument(document); |
document.body.style.overflow = 'hidden'; |
- window.scroll(document.documentElement.scrollLeft, 0); |
+ window.scroll(scrollLeft, 0); |
} else { |
document.body.style.overflow = 'auto'; |
- window.scroll(document.documentElement.scrollLeft, this.lastScrollTop); |
+ window.scroll(scrollLeft, this.lastScrollTop); |
} |
}, |