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

Unified Diff: remoting/webapp/base/js/window_shape.js

Issue 1146833002: [AppRemoting] Implement ConnectionDroppedDialog. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: WindowShape fixes + reviewer's feedback Created 5 years, 7 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 | « remoting/webapp/base/js/modal_dialogs.js ('k') | remoting/webapp/files.gni » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/webapp/base/js/window_shape.js
diff --git a/remoting/webapp/base/js/window_shape.js b/remoting/webapp/base/js/window_shape.js
index ad887bbe3c3c81b1fab4e427200116f60f8446aa..760eff27136412fd04c466dd04c8c9c487ccd365 100644
--- a/remoting/webapp/base/js/window_shape.js
+++ b/remoting/webapp/base/js/window_shape.js
@@ -90,8 +90,8 @@ remoting.WindowShape.prototype.centerToDesktop = function(element) {
var rect = element.getBoundingClientRect();
var left = (desktop.right - desktop.left - rect.width) / 2 + desktop.left;
var top = (desktop.bottom - desktop.top - rect.height) / 2 + desktop.top;
- element.style.left = left + 'px';
- element.style.top = top + 'px';
+ element.style.left = Math.round(left) + 'px';
+ element.style.top = Math.round(top) + 'px';
this.updateClientWindowShape();
};
« no previous file with comments | « remoting/webapp/base/js/modal_dialogs.js ('k') | remoting/webapp/files.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698