Chromium Code Reviews| 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}; |
| + } |
| }; |
| /** |