Closed Bug 292656 Opened 20 years ago Closed 19 years ago

Drop-down selection box with CSS height attribute grows in width when changing selection

Categories

(Core :: Layout: Form Controls, defect)

x86
All
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: jdarmochwal, Assigned: roc)

References

Details

(Keywords: regression, testcase)

Attachments

(2 files)

User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8b2) Gecko/20050502 Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8b2) Gecko/20050502 Changing the selection of a drop-down selection with non-auto height attribute increases the horizontal size of the selection box. Reproducible: Always Steps to Reproduce: 1. Change the selection of a drop-down selection box with style="heigth: <value>;" Actual Results: The horizontal size of the selection box increases whenever the selection changes. Expected Results: The size does not change.
Attached file testcase
Keywords: testcase
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.8) Gecko/20050419 Firefox/1.0.4 Doesn't happen here, if you mean the dropdown selection area constantly widens. It's a little bit wider than the original box with the down arrow, but it doesn't grow in width.
(In reply to comment #2) > Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.8) Gecko/20050419 > Firefox/1.0.4 This bug has regressed between 20050428 and 20050429, can you try to confirm it with a recent nightly? > Doesn't happen here, if you mean the dropdown selection area constantly widens. > It's a little bit wider than the original box with the down arrow, but it > doesn't grow in width. Every time you change the selection, the original box grows in size.
Keywords: regression
confirmed with linux trunk build 2005050205 this regressed between linux trunk 2004042805 and 2005042901 (bug 240276) I get three of these: ###!!! ASSERTION: We assume that the vertical scrollbar width is fixed: 'aMin->width == pref.width', file nsGfxScrollFrame.cpp, line 325 and then one: ###!!! ASSERTION: We assume that the horizontal scrollbar height is fixed: 'aMin->height == pref.height', file nsGfxScrollFrame.cpp, line 328 ==> roc
Assignee: nobody → roc
Status: UNCONFIRMED → NEW
Depends on: 240276
Ever confirmed: true
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b2) Gecko/20050502 Firefox/1.0+ Confirmed, it does indeed grow wider every time I select something.
*** Bug 293508 has been marked as a duplicate of this bug. ***
Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8b2) Gecko/20050508 Firefox/1.0+ confirming OS ->All
OS: Linux → All
fixed by 292656? It works in my trunk build
(In reply to comment #8) > fixed by 292656? It works in my trunk build Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b2) Gecko/20050525 Firefox/1.0+ ID:2005052510 Actually, no, it is not fixed.
Flags: blocking1.8b3?
You have to focus the <select> and then use the arrow keys to change the selection. Changing the selection with the mouse doesn't do it.
Wait, yes it does. Sorry!
Attached patch fixSplinter Review
The combobox code caches dropdown size information for "fully unconstrained" reflows (where both the computed width and height are auto). Unfortunately for non "fully unconstrained" reflows where the height is known but the width is auto, it screws up. We should just treat any reflow with specified computed width as "fully unconstrained" even if there is a computed height, because the dropdown size is not affected at all by the computed height. This fixes the bug.
Attachment #186445 - Flags: superreview?(dbaron)
Attachment #186445 - Flags: review?(dbaron)
Attachment #186445 - Flags: superreview?(dbaron)
Attachment #186445 - Flags: superreview+
Attachment #186445 - Flags: review?(dbaron)
Attachment #186445 - Flags: review+
Comment on attachment 186445 [details] [diff] [review] fix Requesting approval
Attachment #186445 - Flags: approval1.8b3?
Attachment #186445 - Flags: approval1.8b3? → approval1.8b3+
checked in
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Flags: blocking1.8b3?
*** Bug 212845 has been marked as a duplicate of this bug. ***
*** Bug 261391 has been marked as a duplicate of this bug. ***
*** Bug 215916 has been marked as a duplicate of this bug. ***
*** Bug 253679 has been marked as a duplicate of this bug. ***
*** Bug 223977 has been marked as a duplicate of this bug. ***
*** Bug 269170 has been marked as a duplicate of this bug. ***
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: