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

Unified Diff: ui/webui/resources/js/cr/ui/autocomplete_list.js

Issue 543493002: Compile chrome://settings, part 2: reduce from 950 to 400 errors (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@F_settings
Patch Set: Created 6 years, 3 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/webui/resources/js/cr/ui/autocomplete_list.js
diff --git a/ui/webui/resources/js/cr/ui/autocomplete_list.js b/ui/webui/resources/js/cr/ui/autocomplete_list.js
index 5d690eff2fadafa2855fb340db5f6e71701c30e1..8e26a55fe9444f81c7707d6e803bb8f399fbbd65 100644
--- a/ui/webui/resources/js/cr/ui/autocomplete_list.js
+++ b/ui/webui/resources/js/cr/ui/autocomplete_list.js
@@ -167,7 +167,8 @@ cr.define('cr.ui', function() {
this.targetInput_ = input;
this.style.width = input.getBoundingClientRect().width + 'px';
this.hidden = false; // Necessary for positionPopupAroundElement to work.
- cr.ui.positionPopupAroundElement(input, this, cr.ui.AnchorType.BELOW);
+ cr.ui.positionPopupAroundElement(input, this, cr.ui.AnchorType.BELOW,
+ false);
Dan Beam 2014/09/06 02:22:38 can you just make this param optional? positionPo
Vitaly Pavlenko 2014/09/06 22:54:09 Done.
// Start hidden; when the data model gets results the list will show.
this.hidden = true;
@@ -210,13 +211,14 @@ cr.define('cr.ui', function() {
var input = this.targetInput_;
if (input) {
this.style.width = input.getBoundingClientRect().width + 'px';
- cr.ui.positionPopupAroundElement(input, this, cr.ui.AnchorType.BELOW);
+ cr.ui.positionPopupAroundElement(input, this, cr.ui.AnchorType.BELOW,
+ false);
}
},
/**
* syncWidthAndPositionToInput function bound to |this|.
- * @type {Function}
+ * @type {!Function|undefined}
* @private
*/
boundSyncWidthAndPositionToInput_: undefined,

Powered by Google App Engine
This is Rietveld 408576698