Closed Bug 437108 Opened 16 years ago Closed 16 years ago

Select dropdown setting CSS width style disables keyboard shortcut

Categories

(Toolkit :: Form Manager, defect)

x86
Windows Vista
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: surturgomi, Unassigned)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1.14) Gecko/20080404 Firefox/2.0.0.14
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1.14) Gecko/20080404 Firefox/2.0.0.14

If you set the CSS "width" property of a <select> dropdown, Firefox loses the functionality associated with auto-scrolling to the item associated with a key press.  It will still select the item, but will not scroll to that location as it normally does.

Reproducible: Always

Steps to Reproduce:
1. Create a <select> dropdown with more <option> tags than will fit in the viewable area.
2. Add a style="width:___px" attribute to the <select> dropdown with a value larger than the width of the longest option.
3. Open the test page, click the dropdown arrow, and type a key that would normally scroll the list down.
Actual Results:  
It will select the item, but will not scroll.

Expected Results:  
It should select the item and scroll to its location in the dropdown (which it does without the width style tag).
Can you please provide a testcase for this issue?
Derrick, can you ascertain whether this also happens in Firefox 3?

Thanks!
I tested this out on Firefox 3, and no, it does not seem to be happening.  Something along the way must've taken care of it.  That satisfies my needs, since most of my clients will be porting to version 3 relatively quickly, but if you are still looking for a reproducible test-case to fix it in legacy versions, feel free to let me know and I can provide something.

Thanks!
Status: UNCONFIRMED → RESOLVED
Closed: 16 years ago
Resolution: --- → WORKSFORME
Product: Firefox → Toolkit
You need to log in before you can comment on or make changes to this bug.