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

Unified Diff: chrome/browser/resources/options/browser_options.js

Issue 6898001: WebUI Prefs: Resize autocomplete list on window resize (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Condense syncWidthToInput Created 9 years, 8 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/options/autocomplete_list.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/options/browser_options.js
diff --git a/chrome/browser/resources/options/browser_options.js b/chrome/browser/resources/options/browser_options.js
index 1e9af34b02664150c039ff6a660d26cde6ac418b..dd343ab0646dee1b5342be926b07e8a19af119ed 100644
--- a/chrome/browser/resources/options/browser_options.js
+++ b/chrome/browser/resources/options/browser_options.js
@@ -102,6 +102,11 @@ cr.define('options', function() {
if (event.keyIdentifier == 'Enter')
homepageField.blur();
});
+ // Text fields may change widths when the window changes size, so make
+ // sure the suggestion list stays in sync.
+ window.addEventListener('resize', function() {
+ self.autocompleteList_.syncWidthToInput();
+ });
// Ensure that changes are committed when closing the page.
window.addEventListener('unload', function() {
« no previous file with comments | « chrome/browser/resources/options/autocomplete_list.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698