mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-02 22:08:40 +09:00
issue #1575 - Fix the wrong position when we calculate the position for position:absolute child and add reftests
Use |GetUsedBorder| instead of |GetComputedBorder| when we calculate the position for position:absolute child.
This commit is contained in:
parent
179b6782d5
commit
48b7e80724
9 changed files with 154 additions and 2 deletions
|
|
@ -658,8 +658,8 @@ nsAbsoluteContainingBlock::ReflowAbsoluteFrame(nsIFrame* aDelegat
|
|||
|
||||
// Get the border values
|
||||
WritingMode outerWM = aReflowInput.GetWritingMode();
|
||||
const LogicalMargin border(outerWM,
|
||||
aReflowInput.mStyleBorder->GetComputedBorder());
|
||||
const LogicalMargin border(outerWM, aDelegatingFrame->GetUsedBorder());
|
||||
|
||||
LogicalMargin margin =
|
||||
kidReflowInput.ComputedLogicalMargin().ConvertTo(outerWM, wm);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue