| Index: ui/login/account_picker/md_screen_account_picker.js
|
| diff --git a/ui/login/account_picker/md_screen_account_picker.js b/ui/login/account_picker/md_screen_account_picker.js
|
| index 1db4ae69288300816650d1b984eccca5fcd7cfa6..c156d0e9bf98038030bd3f833ef0e6c390400c95 100644
|
| --- a/ui/login/account_picker/md_screen_account_picker.js
|
| +++ b/ui/login/account_picker/md_screen_account_picker.js
|
| @@ -198,20 +198,18 @@ login.createScreen('AccountPickerScreen', 'account-picker', function() {
|
|
|
| var bubbleAnchor;
|
| var attachment;
|
| - if (activatedPod.pinContainer) {
|
| - // Anchor the bubble to the input field.
|
| - bubbleAnchor = (
|
| - activatedPod.getElementsByClassName('auth-container'))[0];
|
| - if (!bubbleAnchor) {
|
| - console.error('auth-container not found!');
|
| - bubbleAnchor = activatedPod.mainInput;
|
| - }
|
| + // Anchor the bubble to the input field.
|
| + bubbleAnchor =
|
| + activatedPod.getElementsByClassName('auth-container')[0];
|
| + if (!bubbleAnchor) {
|
| + console.error('auth-container not found!');
|
| + bubbleAnchor = activatedPod.mainInput;
|
| + }
|
| + if (activatedPod.pinContainer &&
|
| + activatedPod.pinContainer.style.visibility == 'visible')
|
| attachment = cr.ui.Bubble.Attachment.RIGHT;
|
| - } else {
|
| - // Anchor the bubble to the pod instead of the input.
|
| - bubbleAnchor = activatedPod;
|
| + else
|
| attachment = cr.ui.Bubble.Attachment.BOTTOM;
|
| - }
|
|
|
| var bubble = $('bubble');
|
|
|
|
|