Commit 36843acc authored by dzhioev@chromium.org's avatar dzhioev@chromium.org

User pods centered with any resolution.


BUG=222217
TEST=manual
R=nkostylev


Review URL: https://chromiumcodereview.appspot.com/13194004

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@192562 0039d316-1c4b-4281-b951-d872f2087c98
parent 9713b881
...@@ -8,17 +8,24 @@ ...@@ -8,17 +8,24 @@
podrow { podrow {
-webkit-box-align: center; -webkit-box-align: center;
-webkit-box-pack: center; -webkit-box-pack: center;
-webkit-transition: width 180ms ease; /* Temporarily disabled because animation interferes with updating screen's
size. */
/* -webkit-transition: width 180ms ease; */
display: -webkit-box; display: -webkit-box;
max-height: 650px; max-height: 650px;
overflow: hidden; overflow: visible;
padding: 23px 15px;
position: relative;
width: 1152px;
} }
podrow[ncolumns='4'] { podrow[ncolumns='4'] {
width: 900px; width: 880px;
}
podrow[ncolumns='5'] {
width: 1100px;
}
podrow[ncolumns='6'] {
width: 1152px;
} }
/* Hide the pod row while images are loading. */ /* Hide the pod row while images are loading. */
......
...@@ -7,13 +7,6 @@ ...@@ -7,13 +7,6 @@
*/ */
cr.define('login', function() { 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. * Number of displayed columns depending on user pod count.
* @type {Array.<number>} * @type {Array.<number>}
...@@ -983,6 +976,9 @@ cr.define('login', function() { ...@@ -983,6 +976,9 @@ cr.define('login', function() {
this.removeEventListener('mouseout', this.deferredResizeListener_); this.removeEventListener('mouseout', this.deferredResizeListener_);
this.columns = columns; this.columns = columns;
this.rows = rows; this.rows = rows;
if (this.parentNode == Oobe.getInstance().currentScreen) {
Oobe.getInstance().updateScreenSize(this.parentNode);
}
}, },
/** /**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment