Index: remoting/webapp/me2mom/client_session.js |
diff --git a/remoting/webapp/me2mom/client_session.js b/remoting/webapp/me2mom/client_session.js |
index d697019ea2d8dc175231c517735eb56cbb29106d..1dc22aa4bff69d6abb9a18a529bb1318ff3da5e2 100644 |
--- a/remoting/webapp/me2mom/client_session.js |
+++ b/remoting/webapp/me2mom/client_session.js |
@@ -395,9 +395,16 @@ remoting.ClientSession.prototype.toggleScaleToFit = function(shouldScale) { |
this.plugin.width = this.plugin.desktopWidth; |
this.plugin.height = this.plugin.desktopHeight; |
} |
+ remoting.debug.log('window size is now: ' + |
+ window.innerWidth + ' x ' + window.innerHeight + '.'); |
remoting.debug.log('plugin size is now: ' + |
this.plugin.width + ' x ' + this.plugin.height + '.'); |
this.plugin.setScaleToFit(shouldScale); |
+ if (shouldScale) { |
+ addClass(document.all[0], 'hide-scrollbars'); |
+ } else { |
+ removeClass(document.all[0], 'hide-scrollbars'); |
+ } |
remoting.debug.log('scale to fit is now: ' + shouldScale); |
}; |