mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-10 09:19:28 +00:00
Nailed this repainting/disappearing bug to the WALL!
This commit is contained in:
parent
5212cf9694
commit
69ea86f29b
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user