mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-03 22:38:41 +09:00
Issue #146 - Part 6: Allow position: sticky on table elements.
This commit is contained in:
parent
af75c920b0
commit
d26e13657b
4 changed files with 7 additions and 20 deletions
|
|
@ -926,12 +926,11 @@ nsTableRowFrame::ReflowChildren(nsPresContext* aPresContext,
|
|||
// be merged into the else below if we can.)
|
||||
nsMargin* computedOffsetProp =
|
||||
kidFrame->GetProperty(nsIFrame::ComputedOffsetProperty());
|
||||
// Bug 975644: a position:sticky kid can end up with a null
|
||||
// property value here.
|
||||
LogicalMargin computedOffsets(wm, computedOffsetProp ?
|
||||
*computedOffsetProp : nsMargin());
|
||||
ReflowInput::ApplyRelativePositioning(kidFrame, wm, computedOffsets,
|
||||
&kidPosition, containerSize);
|
||||
|
||||
// On our fist reflow sticky children may not have the property yet (we
|
||||
// need to reflow the children first to size the scroll frame).
|
||||
LogicalMargin computedOffsets(wm, computedOffsetProp ? *computedOffsetProp : nsMargin());
|
||||
ReflowInput::ApplyRelativePositioning(kidFrame, wm, computedOffsets, &kidPosition, containerSize);
|
||||
}
|
||||
|
||||
// In vertical-rl mode, we are likely to have containerSize.width = 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue