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

Unified Diff: remoting/webapp/client_session.js

Issue 17288017: Disable scroll-bars in shrink-to-fit mode. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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 | « no previous file | remoting/webapp/main.css » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/webapp/client_session.js
diff --git a/remoting/webapp/client_session.js b/remoting/webapp/client_session.js
index f8f76ba4cab45cedef097361bff1a9028a7153e1..952fd6146a54aa54c44aa9dce1f19b903f4d46b3 100644
--- a/remoting/webapp/client_session.js
+++ b/remoting/webapp/client_session.js
@@ -652,6 +652,14 @@ remoting.ClientSession.prototype.setScreenMode_ =
if (needsScrollReset) {
this.scroll_(0, 0);
}
+
+ // TODO(jamiewalch): crbug.com/252796: Remove this once crbug.com/240772
+ // is fixed.
+ if (this.shrinkToFit_) {
+ document.body.parentNode.classList.add('no-scroll');
Wez 2013/06/21 19:01:05 I assume that classList has set behaviour, i.e. it
Jamie 2013/06/21 19:21:27 Correct.
+ } else {
+ document.body.parentNode.classList.remove('no-scroll');
+ }
}
/**
« no previous file with comments | « no previous file | remoting/webapp/main.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698