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

Unified Diff: chrome/browser/resources/md_user_manager/user_manager.js

Issue 1642323004: User Manager MD User Pods (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: User Manager MD User Pods Created 4 years, 10 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
Index: chrome/browser/resources/md_user_manager/user_manager.js
diff --git a/chrome/browser/resources/md_user_manager/user_manager.js b/chrome/browser/resources/md_user_manager/user_manager.js
index 9bb3defc97cdf510fc45578a1bdc568cdd81e274..a5c0d59b016e3420a691fc9ed35b5c5e6f60d84c 100644
--- a/chrome/browser/resources/md_user_manager/user_manager.js
+++ b/chrome/browser/resources/md_user_manager/user_manager.js
@@ -27,6 +27,21 @@ cr.define('cr.ui', function() {
Oobe.prototype = {
__proto__: DisplayManager.prototype,
+
+ /**
+ * Overrides clientAreaSize in DisplayManager. When a new profile is created
+ * the |outer-container| page is not visible therefore user-pods cannot be
+ * placed correctly. In that case we use the dimensions of |animatedPages|
+ * excluding header bar.
+ * @type {{width:string, height:string}}
+ */
+ get clientAreaSize() {
+ width = $('outer-container').offsetWidth ||
+ $('animatedPages').offsetWidth;
+ height = $('outer-container').offsetHeight ||
+ $('animatedPages').offsetHeight - 57;
Roger Tawa OOO till Jul 10th 2016/02/10 15:58:29 Can you add a comment explain why 57?
Moe 2016/02/11 00:44:02 Done.
+ return {width: width, height: height};
+ }
};
/**

Powered by Google App Engine
This is Rietveld 408576698