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)
Tracking
()
RESOLVED
FIXED
People
(Reporter: jdarmochwal, Assigned: roc)
References
Details
(Keywords: regression, testcase)
Attachments
(2 files)
344 bytes,
text/html
|
Details | |
3.48 KB,
patch
|
dbaron
:
review+
dbaron
:
superreview+
asa
:
approval1.8b3+
|
Details | Diff | Splinter Review |
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.
Reporter | ||
Comment 1•20 years ago
|
||
Comment 2•20 years ago
|
||
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.
Reporter | ||
Comment 3•20 years ago
|
||
(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
Comment 4•20 years ago
|
||
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
Comment 5•20 years ago
|
||
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.
Comment 6•20 years ago
|
||
*** Bug 293508 has been marked as a duplicate of this bug. ***
Comment 7•20 years ago
|
||
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
Assignee | ||
Comment 8•20 years ago
|
||
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.
Updated•20 years ago
|
Flags: blocking1.8b3?
Assignee | ||
Comment 10•19 years ago
|
||
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.
Assignee | ||
Comment 11•19 years ago
|
||
Wait, yes it does. Sorry!
Assignee | ||
Comment 12•19 years ago
|
||
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.
Assignee | ||
Updated•19 years ago
|
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 13•19 years ago
|
||
Comment on attachment 186445 [details] [diff] [review]
fix
Requesting approval
Attachment #186445 -
Flags: approval1.8b3?
Updated•19 years ago
|
Attachment #186445 -
Flags: approval1.8b3? → approval1.8b3+
Assignee | ||
Comment 14•19 years ago
|
||
checked in
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Updated•19 years ago
|
Flags: blocking1.8b3?
Comment 15•19 years ago
|
||
*** Bug 212845 has been marked as a duplicate of this bug. ***
Comment 16•19 years ago
|
||
*** Bug 261391 has been marked as a duplicate of this bug. ***
Comment 17•19 years ago
|
||
*** Bug 215916 has been marked as a duplicate of this bug. ***
Comment 18•19 years ago
|
||
*** Bug 253679 has been marked as a duplicate of this bug. ***
Comment 19•19 years ago
|
||
*** Bug 223977 has been marked as a duplicate of this bug. ***
Comment 20•19 years ago
|
||
*** 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.
Description
•