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, |