during reflow it now should only reflow once for GFX widgets

This commit is contained in:
rods@netscape.com
1999-09-03 14:44:53 +00:00
parent e449d7a6d9
commit 4b38e3b718
2 changed files with 6 additions and 4 deletions

View File

@@ -246,12 +246,13 @@ nsFormControlFrame::Reflow(nsIPresContext& aPresContext,
aDesiredSize.descent = 0;
} else {
GetDesiredSize(&aPresContext, aReflowState, aDesiredSize);
nsresult rv = nsLeafFrame::Reflow(aPresContext, aDesiredSize, aReflowState, aStatus);
if (!mDidInit) {
//GetDesiredSize(&aPresContext, aReflowState, aDesiredSize);
PostCreateWidget(&aPresContext, aDesiredSize.width, aDesiredSize.height);
mDidInit = PR_TRUE;
}
return nsLeafFrame::Reflow(aPresContext, aDesiredSize, aReflowState, aStatus);
return rv;
}
aStatus = NS_FRAME_COMPLETE;