Index: remoting/webapp/client_session.js |
diff --git a/remoting/webapp/client_session.js b/remoting/webapp/client_session.js |
index 13e7d7e9eeaa738bf8fd4146015f5c1a1ef242db..05e942ae7e20cddb9e9b0a22f23c771b3f91926c 100644 |
--- a/remoting/webapp/client_session.js |
+++ b/remoting/webapp/client_session.js |
@@ -1331,7 +1331,7 @@ remoting.ClientSession.prototype.onShowOptionsMenu_ = function() { |
*/ |
remoting.ClientSession.prototype.scroll_ = function(dx, dy) { |
var plugin = this.plugin_.element(); |
- var style = plugin.style; |
+ var style = this.container_.style; |
Sergey Ulanov
2014/09/10 22:07:42
nit: move these below where they are used.
|
/** |
* Helper function for x- and y-scrolling |
@@ -1367,8 +1367,8 @@ remoting.ClientSession.prototype.scroll_ = function(dx, dy) { |
remoting.ClientSession.prototype.resetScroll_ = function() { |
if (this.plugin_) { |
var plugin = this.plugin_.element(); |
Sergey Ulanov
2014/09/10 22:07:42
This line can be removed now and also the if() abo
|
- plugin.style.marginTop = '0px'; |
- plugin.style.marginLeft = '0px'; |
+ this.container_.style.marginTop = '0px'; |
+ this.container_.style.marginLeft = '0px'; |
} |
}; |
@@ -1532,8 +1532,7 @@ remoting.ClientSession.prototype.updateMouseCursorImage_ = |
* @return {{top: number, left:number}} The top-left corner of the plugin. |
*/ |
remoting.ClientSession.prototype.getPluginPositionForTesting = function() { |
- var plugin = this.plugin_.element(); |
- var style = plugin.style; |
+ var style = this.container_.style; |
return { |
top: parseFloat(style.marginTop), |
left: parseFloat(style.marginLeft) |