Commit 09c4fc35 authored by xiyuan@chromium.org's avatar xiyuan@chromium.org

[ChromeOS] Hide 'signin-right' panel when it's empty.

So that we show Gaia horizonally center.

BUG=chromium-os:19779
TEST=Verify fix for chromium-os:19779.


Review URL: http://codereview.chromium.org/7792009

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@98717 0039d316-1c4b-4281-b951-d872f2087c98
parent 6e1e1922
...@@ -58,7 +58,10 @@ cr.define('login', function() { ...@@ -58,7 +58,10 @@ cr.define('login', function() {
showLoadingUI_: function(show) { showLoadingUI_: function(show) {
$('gaia-loading').hidden = !show; $('gaia-loading').hidden = !show;
$('signin-frame').hidden = show; $('signin-frame').hidden = show;
$('signin-right').hidden = show;
// Sign-in right panel is hidden if all its items are hidden.
$('signin-right').hidden = show ||
($('createAccount').hidden && $('guestSignin').hidden);
}, },
/** /**
......
...@@ -11,12 +11,15 @@ ...@@ -11,12 +11,15 @@
} }
#gaia-signin { #gaia-signin {
-webkit-box-align: center;
-webkit-box-pack: center;
display: -webkit-box;
height: 470px; height: 470px;
} }
#signin-right { #signin-right {
float: right;
font-size: 12px; font-size: 12px;
height: 100%;
margin-right: 80px; margin-right: 80px;
width: 200px; width: 200px;
} }
...@@ -30,12 +33,7 @@ ...@@ -30,12 +33,7 @@
} }
#signin-frame { #signin-frame {
bottom: 0;
height: 100%; height: 100%;
left: 0;
position: absolute;
right: 0;
top: 0;
width: 340px; width: 340px;
} }
......
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