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

Unified Diff: chrome/browser/resources/chromeos/login/user_pod_row.js

Issue 13194004: User pods centered with any resolution. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 9 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 | « chrome/browser/resources/chromeos/login/user_pod_row.css ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/chromeos/login/user_pod_row.js
diff --git a/chrome/browser/resources/chromeos/login/user_pod_row.js b/chrome/browser/resources/chromeos/login/user_pod_row.js
index 4d5a1c8cdc4428feeb97a3cef86d9a630dd5ef9a..2297a5da5b82e70e35d59c48727ab04ad02ed7ad 100644
--- a/chrome/browser/resources/chromeos/login/user_pod_row.js
+++ b/chrome/browser/resources/chromeos/login/user_pod_row.js
@@ -8,13 +8,6 @@
cr.define('login', function() {
/**
- * Pod width. 170px Pod + 10px padding + 10px margin on both sides.
- * @type {number}
- * @const
- */
- var POD_WIDTH = 170 + 2 * (10 + 10);
-
- /**
* Number of displayed columns depending on user pod count.
* @type {Array.<number>}
* @const
@@ -978,6 +971,9 @@ cr.define('login', function() {
this.removeEventListener('mouseout', this.deferredResizeListener_);
this.columns = columns;
this.rows = rows;
+ if (this.parentNode == Oobe.getInstance().currentScreen) {
+ Oobe.getInstance().updateScreenSize(this.parentNode);
+ }
},
/**
« no previous file with comments | « chrome/browser/resources/chromeos/login/user_pod_row.css ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698