Closed Bug 318370 Opened 19 years ago Closed 17 years ago

select goes to max-width with size > 1

Categories

(Core :: Widget, defect)

1.8 Branch
x86
Windows 2000
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: Chris.Riesbeck, Unassigned)

Details

(Keywords: testcase, Whiteboard: CLOSEME 07/09)

Attachments

(2 files)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8) Gecko/20051111 Firefox/1.5
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8) Gecko/20051111 Firefox/1.5

The following menu will be 40em's wide. Firefox 1.07 didn't do this, nor does Opera or IE. 

<select name="menu" size="2" style="min-width: 1em; max-width:40em;">
<option>One
<option>Two
</select>

Reproducible: Always

Steps to Reproduce:
1. enter the above HTML into any file
2.
3.



Expected Results:  
expected menu to autosize to width of actual elements
This is confirmed on Windows XP, Firefox 1.5.0.6.
Setting max-width to inherit seems to work around this bug.
Reporter, do you still see this problem with the latest Firefox 2? If not, can you please close this bug as WORKSFORME. Thanks!
Keywords: testcase
Whiteboard: CLOSEME 07/09
Version: unspecified → 1.5.0.x Branch
(In reply to comment #4)
> Reporter, do you still see this problem with the latest Firefox 2? If not, can
> you please close this bug as WORKSFORME. Thanks!
> 

Still there as of Firefox 2.0.0.4, on Windows XP. Explicitly setting max-width on the select element, as in the example HTML I sent, or in CSS, still causes it to go to max-width. Only if I set it in CSS and use max=width:inherit on the element does it use the width of the widest item.
Product: Firefox → Core
QA Contact: general → general
Version: 1.5.0.x Branch → 1.8 Branch
Component: General → Widget
QA Contact: general → general
Can you please check latest Trunk/Firefox 3 Version too ?
And attaching a small Testcase to this Bug would others help confirming the issue.
Thanks!
(In reply to comment #6)
> Can you please check latest Trunk/Firefox 3 Version too ?
> And attaching a small Testcase to this Bug would others help confirming the
> issue.
> Thanks!
> 

The bug does not appear in Gran Paradiso Alpha 6, if that's what you mean. I'll attach a small test file that shows the bug in Firefox 2.
Only major problems with html/css rendering are fixed in Firefox 2. Since this is working on the trunk marking works for me as we don't know which patch fixed this.
Status: UNCONFIRMED → RESOLVED
Closed: 17 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: