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

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

Issue 399613002: Anti-shelf-overlapping fixes for several menus. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Css fixes intersecting with another CL removed. Created 6 years, 4 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
« no previous file with comments | « chrome/browser/resources/user_manager/user_manager.js ('k') | ui/login/account_picker/user_pod_row.css » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/login/account_picker/screen_account_picker.js
diff --git a/ui/login/account_picker/screen_account_picker.js b/ui/login/account_picker/screen_account_picker.js
index 537f6861ccff525d24953e19c67d7cff959c55f8..0ee9718991d22d6472cab72e1a6e035d9e208f54 100644
--- a/ui/login/account_picker/screen_account_picker.js
+++ b/ui/login/account_picker/screen_account_picker.js
@@ -157,6 +157,15 @@ login.createScreen('AccountPickerScreen', 'account-picker', function() {
cr.ui.Bubble.Attachment.BOTTOM,
error,
BUBBLE_OFFSET, BUBBLE_PADDING);
+ // Move error bubble up if it overlaps the shelf.
+ var maxHeight =
+ cr.ui.LoginUITools.getMaxHeightBeforeShelfOverlapping($('bubble'));
+ if (maxHeight < $('bubble').offsetHeight) {
+ $('bubble').showContentForElement(activatedPod.mainInput,
+ cr.ui.Bubble.Attachment.TOP,
+ error,
+ BUBBLE_OFFSET, BUBBLE_PADDING);
+ }
}
},
« no previous file with comments | « chrome/browser/resources/user_manager/user_manager.js ('k') | ui/login/account_picker/user_pod_row.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698