Changed ReflowFixedFrame() to take the computed left and top margin into
account when placing the child git-svn-id: svn://10.0.0.236/trunk@19088 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user