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

Issue 6898001: WebUI Prefs: Resize autocomplete list on window resize (Closed)

Created:
9 years, 8 months ago by stuartmorgan
Modified:
9 years, 7 months ago
Reviewers:
csilv
CC:
chromium-reviews, arv (Not doing code reviews)
Visibility:
Public.

Description

WebUI Prefs: Resize autocomplete list on window resize This isn't perfect, since there is a bit of lag, but putting the list in the field's parent element has visibility and layering problems (that was the original approach used by the autocomplete list when it landed). BUG=80029 TEST=Resize window while the autocomplete window is showing Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=82716

Patch Set 1 #

Total comments: 1

Patch Set 2 : Condense syncWidthToInput #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -0 lines) Patch
M chrome/browser/resources/options/autocomplete_list.js View 1 1 chunk +10 lines, -0 lines 0 comments Download
M chrome/browser/resources/options/browser_options.js View 1 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 2 (0 generated)
stuartmorgan
9 years, 8 months ago (2011-04-21 21:51:29 UTC) #1
csilv
9 years, 8 months ago (2011-04-22 00:10:55 UTC) #2
LGTM

http://codereview.chromium.org/6898001/diff/1/chrome/browser/resources/option...
File chrome/browser/resources/options/autocomplete_list.js (right):

http://codereview.chromium.org/6898001/diff/1/chrome/browser/resources/option...
chrome/browser/resources/options/autocomplete_list.js:177: if (!input)
I'd prefer to make this more concise by saying:

if (input)
  this.style.width = input.getBoundingClientRect().width + 'px';

It's up to you.

Powered by Google App Engine
This is Rietveld 408576698