Closed Bug 429354 Opened 16 years ago Closed 16 years ago

select (drop-down) lists not showing correctly with big font size

Categories

(Core :: Layout: Form Controls, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 314939

People

(Reporter: gerdigos, Unassigned)

Details

Attachments

(3 files)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.0; el; rv:1.8.1.13) Gecko/20080311 Firefox/2.0.0.13
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 6.0; el; rv:1.8.1.13) Gecko/20080311 Firefox/2.0.0.13

When select statements with explicitly stated font-size (via style="font-size: *pt") are encountered, the vertical size of the drop-down list is not calculated correctly. As a result, the drop-down list becomes a "drop-up" list and some select options are hidden. However, if the drop-down list has enough elements for the renderer to supply a vertical scrollbar, the above does not happen.
Screen resolution on test machine was 1280x800.

Reproducible: Always

Steps to Reproduce:
see attached .html file
The "drop-up" list goes all the way up the screen.
Reproducible on 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9pre) Gecko/2008041506 Minefield/3.0pre'
Happens on Linux as well, can't find a dupe.
Status -> new, ALL, ALL, adjusting product and component
Status: UNCONFIRMED → NEW
Component: General → Layout: Form Controls
Ever confirmed: true
OS: Windows Vista → All
Product: Firefox → Core
Hardware: PC → All
Version: unspecified → Trunk
QA Contact: general → layout.form-controls
Bug 352602 looks like a pretty direct dup...
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → DUPLICATE
The patch makes the select element figure out a suitable number of visible rows for drop downs with 20 or less rows (as already done for >20 rows).
Attachment #316124 - Flags: review?(dbaron)
Comment on attachment 316124 [details] [diff] [review]
find suitable number of visible rows for drop downs with <=20 rows

This is basically identical to the patch with r- in bug 314939.
Attachment #316124 - Flags: review?(dbaron)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: