Commit 81b4f7b4 authored by Alexander Alekseev's avatar Alexander Alekseev Committed by Commit Bot

ChromeOS: Fix layout when Gaia containers are updated.

This CL updates Gaia containers size after its state has been updated, not
before.

Bug: 745933
Cq-Include-Trybots: master.tryserver.chromium.linux:closure_compilation
Change-Id: I1517fe77e1148f6af27e816782767f9b5ee22d77
Reviewed-on: https://chromium-review.googlesource.com/578869Reviewed-by: default avatarAchuith Bhandarkar <achuith@chromium.org>
Commit-Queue: Alexander Alekseev <alemate@chromium.org>
Cr-Commit-Position: refs/heads/master@{#488387}
parent f41305f9
...@@ -345,7 +345,6 @@ login.createScreen('GaiaSigninScreen', 'gaia-signin', function() { ...@@ -345,7 +345,6 @@ login.createScreen('GaiaSigninScreen', 'gaia-signin', function() {
*/ */
set screenMode(value) { set screenMode(value) {
this.screenMode_ = value; this.screenMode_ = value;
this.updateSigninFrameContainers_();
switch (this.screenMode_) { switch (this.screenMode_) {
case ScreenMode.DEFAULT: case ScreenMode.DEFAULT:
$('signin-frame-dialog').hidden = false; $('signin-frame-dialog').hidden = false;
...@@ -376,6 +375,7 @@ login.createScreen('GaiaSigninScreen', 'gaia-signin', function() { ...@@ -376,6 +375,7 @@ login.createScreen('GaiaSigninScreen', 'gaia-signin', function() {
$('offline-ad-auth').hidden = true; $('offline-ad-auth').hidden = true;
break; break;
} }
this.updateSigninFrameContainers_();
chrome.send('updateOfflineLogin', [this.isOffline()]); chrome.send('updateOfflineLogin', [this.isOffline()]);
this.updateControlsState(); this.updateControlsState();
}, },
......
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