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

Unified Diff: chrome/browser/resources/chromeos/login/oobe.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
Index: chrome/browser/resources/chromeos/login/oobe.js
diff --git a/chrome/browser/resources/chromeos/login/oobe.js b/chrome/browser/resources/chromeos/login/oobe.js
index 3626967929c5208a75c7b792ca79fc95382e55fc..218ed000dc3cec4cc3a0b7634af5886ca50db21e 100644
--- a/chrome/browser/resources/chromeos/login/oobe.js
+++ b/chrome/browser/resources/chromeos/login/oobe.js
@@ -146,6 +146,15 @@ cr.define('cr.ui.Oobe', function() {
$('accessibility-menu').showForElement(e.target,
cr.ui.Bubble.Attachment.BOTTOM,
BUBBLE_OFFSET, BUBBLE_PADDING);
+
+ var maxHeight = cr.ui.LoginUITools.getMaxHeightBeforeShelfOverlapping(
+ $('accessibility-menu'));
+ if (maxHeight < $('accessibility-menu').offsetHeight) {
+ $('accessibility-menu').showForElement(e.target,
+ cr.ui.Bubble.Attachment.TOP,
+ BUBBLE_OFFSET, BUBBLE_PADDING);
+ }
+
$('accessibility-menu').firstBubbleElement = $('spoken-feedback');
$('accessibility-menu').lastBubbleElement = $('close-accessibility-menu');
if (Oobe.getInstance().currentScreen &&
« no previous file with comments | « chrome/browser/resources/chromeos/login/network_dropdown.js ('k') | chrome/browser/resources/user_manager/user_manager.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698