Changed ReflowFixedFrame() to take the computed left and top margin into

account when placing the child
This commit is contained in:
troy%netscape.com 1999-01-31 05:09:29 +00:00
Родитель 3564688e35
Коммит 7c0d5680c3
2 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -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);