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

Unified Diff: remoting/webapp/ui_mode.js

Issue 539403002: Fix scroll-related issues. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 months 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 | « remoting/webapp/main.css ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/webapp/ui_mode.js
diff --git a/remoting/webapp/ui_mode.js b/remoting/webapp/ui_mode.js
index 16e5e5354abdee70e14dec18ae3c1a789a246aa9..b69b8a379216b400f321c3a98769c7c5de2caffd 100644
--- a/remoting/webapp/ui_mode.js
+++ b/remoting/webapp/ui_mode.js
@@ -139,9 +139,9 @@ remoting.setMode = function(mode) {
remoting.onVisibilityChanged, false);
// TODO(jamiewalch): crbug.com/252796: Remove this once crbug.com/240772
// is fixed.
- var htmlNode = /** @type {HTMLElement} */ (document.body.parentNode);
- htmlNode.classList.remove('no-horizontal-scroll');
- htmlNode.classList.remove('no-vertical-scroll');
+ var scroller = document.getElementById('scroller');
+ scroller.classList.remove('no-horizontal-scroll');
+ scroller.classList.remove('no-vertical-scroll');
}
remoting.testEvents.raiseEvent(remoting.testEvents.Names.uiModeChanged, mode);
« no previous file with comments | « remoting/webapp/main.css ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698