| Index: chrome/browser/resources/options/autocomplete_list.js
|
| diff --git a/chrome/browser/resources/options/autocomplete_list.js b/chrome/browser/resources/options/autocomplete_list.js
|
| index 46ba8d20e92b9226a9f60bbbbaa7304c80386d7d..6f6369003a4660931c678fc44a5027ca3765482f 100644
|
| --- a/chrome/browser/resources/options/autocomplete_list.js
|
| +++ b/chrome/browser/resources/options/autocomplete_list.js
|
| @@ -169,6 +169,16 @@ cr.define('options', function() {
|
| },
|
|
|
| /**
|
| + * Makes sure that the suggestion list matches the width of the input it is.
|
| + * attached to. Should be called any time the input is resized.
|
| + */
|
| + syncWidthToInput: function() {
|
| + var input = this.targetInput_
|
| + if (input)
|
| + this.style.width = input.getBoundingClientRect().width + 'px';
|
| + },
|
| +
|
| + /**
|
| * The text field the autocomplete popup is currently attached to, if any.
|
| * @return {HTMLElement}
|
| */
|
|
|