Closed
Bug 305705
Opened 19 years ago
Closed 19 years ago
Whitespace in <option> of <select> isn't selectable when width is specified.
Categories
(Core :: Layout: Form Controls, defect)
Tracking
()
VERIFIED
FIXED
People
(Reporter: stephend, Assigned: MatsPalmgren_bugz)
References
()
Details
(Keywords: regression, testcase, verified1.8.1)
Attachments
(4 files)
726 bytes,
text/html
|
Details | |
4.72 KB,
text/html
|
Details | |
3.64 KB,
patch
|
Details | Diff | Splinter Review | |
3.16 KB,
patch
|
bzbarsky
:
review+
bzbarsky
:
superreview+
mtschrep
:
approval1.8.1+
|
Details | Diff | Splinter Review |
Build ID: 2005-08-23-06, SeaMonkey trunk and Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20050823 Firefox/1.6a1 of Deer Park. This is a regression since Firefox 1.0.6. Summary: Whitespace in <option> of <select> isn't selectable. Steps to Reproduce: 1. Load http://www.ssaglobal.com/company/careers/index.aspx?region=A 2. Choose "The Americas" from the first dropdown 3. Then notice that whitespace isn't selectable; only the text in each value of the <option>. I tried making a testcase with just the form itself, but that didn't trigger the bug.
Reporter | ||
Comment 1•19 years ago
|
||
In this minimal testcase, if I remove the CSS width:175; portion, it displays fine.
Reporter | ||
Updated•19 years ago
|
Summary: Whitespace in <option> of <select> isn't selectable. → Whitespace in <option> of <select> isn't selectable when width is specified.
Assignee | ||
Comment 2•19 years ago
|
||
Assignee | ||
Comment 3•19 years ago
|
||
Assignee | ||
Comment 4•19 years ago
|
||
The problem is that "if (aDesiredSize.width > dropdownDesiredSize.width)" is false so we never do the second pass reflow when the SELECT has a specified width <= desired width of the widest option. With this patch all the OPTIONs in Testcase #2 fills the SELECT, except for 6, 7 and 8 for the OPTION that has a specified 'width'. There is a gap at the right the size of the combo button for those OPTIONs. I don't see any way around that. (Compare those with, 9, 10 and 11 where 'min-width' is used instead)
Assignee: nobody → mats.palmgren
Status: NEW → ASSIGNED
Attachment #200452 -
Flags: superreview?(bzbarsky)
Attachment #200452 -
Flags: review?(bzbarsky)
Reporter | ||
Updated•19 years ago
|
Comment 5•19 years ago
|
||
So does that fix bug 302483 and bug 147143? We also have other bugs with setting widths on select that this might fix, I think.... Also, does this allow us to re-fix bug 232540 without causing bug 252850?
Updated•19 years ago
|
Comment 6•19 years ago
|
||
Comment on attachment 200452 [details] [diff] [review] Patch rev. 1 (diff -w) Looks reasonable. Watch Tp carefully, though!
Attachment #200452 -
Flags: superreview?(bzbarsky)
Attachment #200452 -
Flags: superreview+
Attachment #200452 -
Flags: review?(bzbarsky)
Attachment #200452 -
Flags: review+
Reporter | ||
Updated•19 years ago
|
Whiteboard: needs landing
Comment 7•19 years ago
|
||
Fixed on trunk.
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Reporter | ||
Updated•19 years ago
|
Whiteboard: needs landing
Reporter | ||
Comment 8•19 years ago
|
||
Verified FIXED using both testcases with build 2005-11-15-08 of SeaMonkey trunk on Windows XP.
Status: RESOLVED → VERIFIED
Comment 9•19 years ago
|
||
This bug is affecting Gmail in FF 1.5. I think we should fix it on the Gecko 1.8 branch if the patch is safe enough.
Flags: blocking1.8.0.1?
Comment 10•19 years ago
|
||
anyone know if tp was affected, and have comment on suitability of landing on 1.8.0.1?
Comment 11•19 years ago
|
||
This is not suitable for 1.8.0.1 at all, in my opinion -- it's not a stability fix. It might be OK for 1.8.1. There was no Tp impact that I saw.
Comment 12•19 years ago
|
||
going with bz's opinion, not blocking.
Flags: blocking1.8.1?
Flags: blocking1.8.0.1?
Flags: blocking1.8.0.1-
Comment 13•18 years ago
|
||
Comment on attachment 200452 [details] [diff] [review] Patch rev. 1 (diff -w) (In reply to comment #11) > This is not suitable for 1.8.0.1 at all, in my opinion -- it's not a stability > fix. It might be OK for 1.8.1. Per bug 320940, this fixes a Gv1.8 regression over Gv1.7. I request approval for Gv1.8.1; and would like to suggest to include it for Gv1.8.0.3 as well...
Attachment #200452 -
Flags: approval-branch-1.8.1?(dbaron)
Comment on attachment 200452 [details] [diff] [review] Patch rev. 1 (diff -w) Please don't write using lots of abbreviations that nobody else uses.
Updated•18 years ago
|
Flags: blocking1.8.1? → blocking1.8.1+
(Is this at all related to bug 325680?)
Updated•18 years ago
|
Attachment #200452 -
Flags: approval-branch-1.8.1?(dbaron) → approval1.8.1?
Comment 16•18 years ago
|
||
(In reply to comment #15) > (Is this at all related to bug 325680?) [Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.8.1a3) Gecko/20060621 SeaMonkey/1.1a] (nightly) (W98SE) Bug still there on branch, per testcases.
Updated•18 years ago
|
Attachment #200452 -
Flags: approval1.8.1? → approval1.8.1+
Updated•18 years ago
|
Keywords: regression
Assignee | ||
Updated•18 years ago
|
Keywords: fixed1.8.1
Comment 17•18 years ago
|
||
[Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.8.1a3) Gecko/20060623 SeaMonkey/1.1a] (nightly) (W98SE) V.Fixed on MOZILLA_1_8_BRANCH. ***** (In reply to comment #4) > Created an attachment (id=200452) [edit] > Patch rev. 1 (diff -w) > > With this patch all the OPTIONs in Testcase #2 fills the SELECT, except for > 6, 7 and 8 for the OPTION that has a specified 'width'. There is a gap at the > right the size of the combo button for those OPTIONs. > I don't see any way around that. > (Compare those with, 9, 10 and 11 where 'min-width' is used instead) In the meantime, I had filed bug 320640 about case 6+7+8 issue.
Keywords: fixed1.8.1 → verified1.8.1
Comment 18•18 years ago
|
||
For the record [ 2006-06-22 18:19 mats.palmgren%bredband.net mozilla/layout/forms/nsComboboxControlFrame.cpp 1.324.6.3 MOZILLA_1_8_BRANCH ]
Comment 19•18 years ago
|
||
*** Bug 341521 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
•