Closed Bug 357449 Opened 19 years ago Closed 19 years ago

[reflow branch] Combobox dropdown button position is wrong?

Categories

(Core :: Layout: Form Controls, defect)

Other Branch
x86
Linux
defect
Not set
minor

Tracking

()

RESOLVED FIXED

People

(Reporter: MatsPalmgren_bugz, Assigned: MatsPalmgren_bugz)

References

Details

(Keywords: testcase)

Attachments

(2 files)

[reflow branch] Combobox dropdown button height/position is wrong? There is no assertion (bug 357044) for this testcase but perhaps it's the same underlying issue...
Attached file Testcase #1
Hmm.... I'm not sure. I clearly should have tested setting font size and height both... :(
Assignee: nobody → bzbarsky
The height seems to be correct, it's the position that is different from trunk. http://bonsai.mozilla.org/cvsblame.cgi?file=/mozilla/layout/style/forms.css&rev=3.118.2.1&root=/cvsroot&mark=195-200#181 FWIW, changing it to "vertical-align:top" gives the same rendering as trunk.
Summary: [reflow branch] Combobox dropdown button height/position is wrong? → [reflow branch] Combobox dropdown button position is wrong?
MM.... so the problem here is that the display frame's bottom ends up below the actual display area or something? I agree that vertical-align:top would make more sense here. If it fixes the problem, let's do it.
Attached patch Patch rev. 1Splinter Review
Yeah, this looks like a typo... I was a bit curious why this works on trunk though since there is no vertical-align declaration there. It seems we brute force 'top' in C++: http://bonsai.mozilla.org/cvsblame.cgi?file=/mozilla/layout/forms/nsComboboxControlFrame.cpp&rev=1.376&root=/cvsroot&mark=876,888#858 Adding vertical-align:bottom!important (etc) on trunk has no effect.
Assignee: bzbarsky → mats.palmgren
Status: NEW → ASSIGNED
Attachment #242941 - Flags: superreview?(bzbarsky)
Attachment #242941 - Flags: review?(bzbarsky)
Comment on attachment 242941 [details] [diff] [review] Patch rev. 1 Looks great. Thanks!
Attachment #242941 - Flags: superreview?(bzbarsky)
Attachment #242941 - Flags: superreview+
Attachment #242941 - Flags: review?(bzbarsky)
Attachment #242941 - Flags: review+
Oh, and please add to the layout regression tests?
Checked in on REFLOW_20060830_BRANCH at 2006-10-26 18:14 PDT. Also added the testcase to the layout regression test suite on trunk. layout/html/tests/formctls/bugs/bug357449.html -> FIXED
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: