Closed
Bug 336153
Opened 18 years ago
Closed 17 years ago
No horizontal scrollbar with element inside fieldset and padding-top
Categories
(Core :: Layout, defect, P3)
Tracking
()
VERIFIED
FIXED
mozilla1.9beta2
People
(Reporter: martijn.martijn, Assigned: roc)
References
Details
(Keywords: regression, testcase, Whiteboard: [dbaron-1.9:RwCo])
Attachments
(4 files, 1 obsolete file)
698 bytes,
text/html
|
Details | |
476 bytes,
text/html
|
Details | |
3.73 KB,
patch
|
bzbarsky
:
review+
bzbarsky
:
superreview+
|
Details | Diff | Splinter Review |
2.97 KB,
patch
|
Details | Diff | Splinter Review |
See upcoming testcase. You should see a horizontal scrollbar also with the testcase. And the bottom scrollbarbutton should work normally. This is not the case with current trunk builds. This regressed between 2006-01-25 and 2006-01-26, making this a likely regression from bug 317375.
Reporter | ||
Comment 1•18 years ago
|
||
Reporter | ||
Updated•17 years ago
|
Flags: blocking1.9?
Assignee | ||
Updated•17 years ago
|
Assignee: nobody → roc
Assignee | ||
Updated•17 years ago
|
Flags: blocking1.9? → blocking1.9+
Assignee | ||
Comment 2•17 years ago
|
||
This testcase does not rely on padding in the fieldset
Assignee | ||
Comment 3•17 years ago
|
||
This wasn't really a display lists regression ... they just exposed some really bogus reflow code in nsFieldSetFrame (surprise!), namely: if (aReflowState.ComputedHeight() != NS_INTRINSICSIZE && borderPadding.top + mLegendSpace+kidDesiredSize.height > aReflowState.ComputedHeight()) { kidDesiredSize.height = aReflowState.ComputedHeight()-(borderPadding.top + mLegendSpace); } Problem #1 is subtracting the fieldset's border+padding from its content height and assuming that means something sensible. It doesn't. Problem #2 is bashing the fieldset's anonymous block frame size without adjusting anything else, like its overflow area or the layout of its children. That's what causes weird problems in the testcases in this bug. My solution is to change the computed height of the child *before* we reflow it to subtract out the "content space" taken up by the legend, if any --- which I think is what the bogus code is trying to do. This works very well. This patch also removes lame attempts to handle margins on the fieldset's anonymous block, which are pointless because it can't have margins. Really handling margins would complicate the fix I'm implementing here.
Attachment #285991 -
Flags: superreview?(bzbarsky)
Attachment #285991 -
Flags: review?(bzbarsky)
Assignee | ||
Updated•17 years ago
|
Whiteboard: [needs review]
Comment 4•17 years ago
|
||
Comment on attachment 285991 [details] [diff] [review] fix >Index: layout/forms/nsFieldSetFrame.cpp >+ // Our child is "height:100%" but we actually want its height to be reduced >+ // by the amount of content-height the legend is eating up. >+ kidReflowState.SetComputedHeight(PR_MAX(0, aReflowState.ComputedHeight() - mLegendSpace)); If we're auto-height, the kid will be too, no? That is, aReflowState.ComputedHeight() might be unconstrained. You probably don't want to run this line in that case. The rest of this looks good, but we need to address the unconstrained issue.
Attachment #285991 -
Flags: superreview?(bzbarsky)
Attachment #285991 -
Flags: superreview-
Attachment #285991 -
Flags: review?(bzbarsky)
Attachment #285991 -
Flags: review-
Assignee | ||
Comment 5•17 years ago
|
||
Sure wish we had saturating nscoords...
Attachment #285991 -
Attachment is obsolete: true
Attachment #286058 -
Flags: superreview?(bzbarsky)
Attachment #286058 -
Flags: review?(bzbarsky)
Comment 6•17 years ago
|
||
Comment on attachment 286058 [details] [diff] [review] good call r+sr=bzbarsky
Attachment #286058 -
Flags: superreview?(bzbarsky)
Attachment #286058 -
Flags: superreview+
Attachment #286058 -
Flags: review?(bzbarsky)
Attachment #286058 -
Flags: review+
Assignee | ||
Updated•17 years ago
|
Whiteboard: [needs review] → [needs landing]
Whiteboard: [needs landing] → [needs landing][dbaron-1.9:RwCo]
Reporter | ||
Comment 7•17 years ago
|
||
Note to self, need to look whether this would fix the click problem I have with the "Zoek" button sometimes at http://www.mensenlinq.nl/mensenlinq/overlijdennl/site/home
Assignee | ||
Updated•17 years ago
|
Priority: -- → P3
Comment 8•17 years ago
|
||
Checking in layout/forms/nsFieldSetFrame.cpp; /cvsroot/mozilla/layout/forms/nsFieldSetFrame.cpp,v <-- nsFieldSetFrame.cpp new revision: 3.164; previous revision: 3.163 done
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Whiteboard: [needs landing][dbaron-1.9:RwCo] → [dbaron-1.9:RwCo]
Target Milestone: --- → mozilla1.9 M10
Reporter | ||
Comment 9•17 years ago
|
||
Verified fixed, using: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9b2pre) Gecko/2007110805 Minefield/3.0b2pre Also the problem I had at http://www.mensenlinq.nl/mensenlinq/overlijdennl/site/home seems fixed.
Status: RESOLVED → VERIFIED
Assignee | ||
Comment 10•17 years ago
|
||
You need to log in
before you can comment on or make changes to this bug.
Description
•