Closed
Bug 370422
Opened 17 years ago
Closed 17 years ago
[FIX]Select drop down button doesn't update its position in this case when document widens
Categories
(Core :: Layout: Form Controls, defect, P3)
Core
Layout: Form Controls
Tracking
()
RESOLVED
FIXED
mozilla1.9alpha3
People
(Reporter: martijn.martijn, Assigned: bzbarsky)
References
Details
(Keywords: regression, testcase)
Attachments
(3 files)
753 bytes,
text/html
|
Details | |
762 bytes,
patch
|
Details | Diff | Splinter Review | |
6.88 KB,
patch
|
dbaron
:
review+
dbaron
:
superreview+
|
Details | Diff | Splinter Review |
See testcase, the iframe gets wider after 0.5 seconds. The select drop down should become wider then, also, but in current trunk builds, the select drop down stays at the same place. This regressed between 2007-01-26 and 2007-01-28: http://bonsai.mozilla.org/cvsquery.cgi?treeid=default&module=all&branch=HEAD&branchtype=match&dir=&file=&filetype=match&who=&whotype=match&sortby=Date&hours=2&date=explicit&mindate=2007-01-26+05&maxdate=2007-01-28+09&cvsroot=%2Fcvsroot My guess is a regression from bug 163504 or bug 9458.
Assignee | ||
Comment 1•17 years ago
|
||
I see this regress between 2007-01-27-02 and 2007-01-28-01: http://bonsai.mozilla.org/cvsquery.cgi?treeid=default&module=all&branch=HEAD&branchtype=match&dir=&file=&filetype=match&who=&whotype=match&sortby=Date&hours=2&date=explicit&mindate=2007-01-27+02&maxdate=2007-01-28+01&cvsroot=%2Fcvsroot Possible cuprits are some of the things David landed, and bug 365477.
Assignee | ||
Comment 2•17 years ago
|
||
Well, it's not bug 365477 (tested by local backout).
Assignee | ||
Comment 3•17 years ago
|
||
So this is a regression from the patch in bug 163504... The issue is that the combobox display frame has a width that depends on the available width, but it's not flagged as such in any way. We can fix this bug by setting that frame to "display: inline-block", though that's just there to appease the check bug 163504 added, since we still munge the width. Is there a way we could nix the width-munging altogether, short of using table-cell display or something? Basically, we want to take up all the space except for the width of the dropdown marker.
Blocks: 163504
Assignee | ||
Comment 4•17 years ago
|
||
We should just add the frame type to the list in IsPercentageAware, no? (nsLineLayout.cpp, around line 750) The hack would only fix it if it were !important, and I don't think that's necessary.
Assignee | ||
Comment 6•17 years ago
|
||
This frame doesn't have a special frame type (though we could add one, I guess), but content can't style it in any case. So the non-!important thing does work. I guess adding a frame type is the easiest thing to do here, if we can't get rid of that frame class altogether.
Ah, ok, hadn't realized it was one of the inner frames.
Assignee | ||
Comment 8•17 years ago
|
||
Assignee: nobody → bzbarsky
Status: NEW → ASSIGNED
Assignee | ||
Updated•17 years ago
|
OS: Windows XP → All
Priority: -- → P3
Hardware: PC → All
Summary: Select drop down button doesn't update its position in this case when document widens → [FIX]Select drop down button doesn't update its position in this case when document widens
Target Milestone: --- → mozilla1.9alpha3
Assignee | ||
Updated•17 years ago
|
Attachment #256569 -
Flags: superreview?(dbaron)
Attachment #256569 -
Flags: review?(dbaron)
Attachment #256569 -
Flags: superreview?(dbaron)
Attachment #256569 -
Flags: superreview+
Attachment #256569 -
Flags: review?(dbaron)
Attachment #256569 -
Flags: review+
Assignee | ||
Comment 9•17 years ago
|
||
Fixed.
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Comment 10•17 years ago
|
||
http://bonsai.mozilla.org/cvsview2.cgi?diff_mode=context&whitespace_mode=show&subdir=mozilla/layout/reftests/bugs&command=DIFF_FRAMESET&file=reftest.list&rev1=1.2&rev2=1.3&root=/cvsroot
Flags: in-testsuite+
You need to log in
before you can comment on or make changes to this bug.
Description
•