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

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

Issue 23774004: Fix account picker centering (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: force a resize after loading pods Created 7 years, 3 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 | « no previous file | chrome/browser/resources/user_manager/user_manager.html » ('j') | 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 f9ac4dca7ae1e7581ce4bbbeea5776fdba9ea77b..c1b03eed5bfd9d8bbddcc70519420d319b05f086 100644
--- a/chrome/browser/resources/chromeos/login/user_pod_row.js
+++ b/chrome/browser/resources/chromeos/login/user_pod_row.js
@@ -1117,6 +1117,13 @@ cr.define('login', function() {
// Cancel any pending resize operation.
this.removeEventListener('mouseout', this.deferredResizeListener_);
+ // If this pod row is used in the desktop user manager, we need to
+ // force a resize, as it may be a background window which won't get a
+ // mouseout event for a while; the pods would be displayed incorrectly
+ // until then.
+ if (this.preselectedPod.user.isDesktopUser)
+ this.resize_(columns, rows);
+
if (!this.columns || !this.rows) {
// Set initial dimensions.
this.resize_(columns, rows);
« no previous file with comments | « no previous file | chrome/browser/resources/user_manager/user_manager.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698