Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(56)

Unified Diff: ui/login/account_picker/md_screen_account_picker.js

Issue 2875513002: Single user pod implementation for new login screen (Closed)
Patch Set: Address comments Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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');
« no previous file with comments | « chrome/browser/resources/chromeos/login/md_screen_container.html ('k') | ui/login/account_picker/md_user_pod_row.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698