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

Unified Diff: remoting/webapp/me2mom/toolbar.js

Issue 8897017: Fix null pointer error. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review Created 9 years 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 | « remoting/webapp/me2mom/client_session.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/webapp/me2mom/toolbar.js
diff --git a/remoting/webapp/me2mom/toolbar.js b/remoting/webapp/me2mom/toolbar.js
index b4b5644d3c6dc8f1a5ac9c82ee77f21b623aee48..85ad48bb28feb59c04f1f22f99d34478e0a7d380 100644
--- a/remoting/webapp/me2mom/toolbar.js
+++ b/remoting/webapp/me2mom/toolbar.js
@@ -22,6 +22,16 @@ remoting.Toolbar = function(toolbar) {
* @private
*/
this.toolbar_ = toolbar;
+ /**
+ * @type {boolean} False if the tool-bar is currently hidden, or should be
+ * hidden once the over-shoot timer expires; true otherwise.
+ */
+ this.visible = false;
+ /**
+ * @type {number?} The id of the current timer, if any.
+ */
+ this.timerId = null;
+
/** @type {remoting.Toolbar} */
var that = this;
@@ -44,15 +54,7 @@ remoting.Toolbar = function(toolbar) {
that.showForAtLeast_(1000);
};
- /**
- * @type {boolean} False if the tool-bar is currently hidden, or should be
- * hidden once the over-shoot timer expires; true otherwise.
- */
- this.visible = false;
- /**
- * @type {number?} The id of the current timer, if any.
- */
- this.timerId = null;
+ window.addEventListener('resize', function() { that.center(); }, false);
};
/**
« no previous file with comments | « remoting/webapp/me2mom/client_session.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698