mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-27 10:50:35 +00:00
Changed ReflowFixedFrame() to take the computed left and top margin into
account when placing the child
This commit is contained in:
parent
3564688e35
commit
7c0d5680c3
@ -179,8 +179,8 @@ ViewportFrame::ReflowFixedFrame(nsIPresContext& aPresContext,
|
||||
}
|
||||
|
||||
// Position the child
|
||||
nsRect rect(kidReflowState.computedOffsets.left,
|
||||
kidReflowState.computedOffsets.top,
|
||||
nsRect rect(kidReflowState.computedOffsets.left + kidReflowState.computedMargin.left,
|
||||
kidReflowState.computedOffsets.top + kidReflowState.computedMargin.top,
|
||||
kidDesiredSize.width, kidDesiredSize.height);
|
||||
aKidFrame->SetRect(rect);
|
||||
htmlReflow->DidReflow(aPresContext, NS_FRAME_REFLOW_FINISHED);
|
||||
|
@ -179,8 +179,8 @@ ViewportFrame::ReflowFixedFrame(nsIPresContext& aPresContext,
|
||||
}
|
||||
|
||||
// Position the child
|
||||
nsRect rect(kidReflowState.computedOffsets.left,
|
||||
kidReflowState.computedOffsets.top,
|
||||
nsRect rect(kidReflowState.computedOffsets.left + kidReflowState.computedMargin.left,
|
||||
kidReflowState.computedOffsets.top + kidReflowState.computedMargin.top,
|
||||
kidDesiredSize.width, kidDesiredSize.height);
|
||||
aKidFrame->SetRect(rect);
|
||||
htmlReflow->DidReflow(aPresContext, NS_FRAME_REFLOW_FINISHED);
|
||||
|
Loading…
Reference in New Issue
Block a user