Commit 7fb48db2 authored by wzang's avatar wzang Committed by Commit Bot

Fix two container issues for new login screen

1) We need the outer-container to be scrollable when gaia screen and
virtual keyboard are shown together, so the dark overlay ('login-shield')
should always have the same size with the larger one of
the outer-container and the scroll-container, otherwise we see areas
without overlay when scrolling up.

2) We should remember to clear contents on the small pods container
before rebuilding pods.

BUG=718156
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation

Review-Url: https://codereview.chromium.org/2916973002
Cr-Commit-Position: refs/heads/master@{#476497}
parent a4b98df1
......@@ -425,6 +425,12 @@ cr.define('cr.ui', function() {
Oobe.setVirtualKeyboardShown = function(shown) {
Oobe.getInstance().virtualKeyboardShown = shown;
$('pod-row').setFocusedPodPinVisibility(!shown);
// The dark overlay should always have the same size with the larger one
// of the outer-container and the scroll-container.
if (shown)
$('login-shield').style.minHeight = $('outer-container').style.minHeight;
else
$('login-shield').style.minHeight = 'unset';
};
/**
......
......@@ -3122,6 +3122,7 @@ cr.define('login', function() {
this.activatedPod_ = undefined;
this.lastFocusedPod_ = undefined;
this.mainPod_ = undefined;
this.smallPodsContainer.innerHTML = '';
// Switch off animation
Oobe.getInstance().toggleClass('flying-pods', false);
......
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