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); |