Nailed this repainting/disappearing bug to the WALL!

This commit is contained in:
hyatt%netscape.com 1999-07-08 00:43:17 +00:00
parent 5212cf9694
commit 69ea86f29b

View File

@ -715,13 +715,16 @@ nsBoxFrame::FlowChildAt(nsIFrame* childFrame,
// set the rect
childFrame->SetRect(nsRect(0,0,desiredSize.width, desiredSize.height));
// clear out the incremental child, so that we don't flow it incrementally again
if (reason == eReflowReason_Incremental && incrementalChild == childFrame)
incrementalChild = nsnull;
}
// add the margin back in. The child should add its border automatically
desiredSize.height += (margin.top + margin.bottom);
desiredSize.width += (margin.left + margin.right);
mSprings[spring].needsReflow = PR_FALSE;
return NS_OK;