Chromium Code Reviews| 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'); |
| + } |
| } |
| /** |