fixed a minor bug in incremental reflow where the reflow state's "widthConstraint" wasn't getting set

This commit is contained in:
buster@netscape.com
1998-12-11 18:54:58 +00:00
parent e87b4d914c
commit 9633a2bd3f
2 changed files with 4 additions and 0 deletions

View File

@@ -1247,6 +1247,7 @@ NS_METHOD nsTableRowFrame::IR_TargetIsChild(nsIPresContext& aPresContext,
kidReflowState.reason = eReflowReason_Resize;
kidReflowState.reflowCommand = nsnull;
kidReflowState.maxSize.width = NS_UNCONSTRAINEDSIZE;
kidReflowState.widthConstraint = eHTMLFrameConstraint_Unconstrained;
rv = ReflowChild(aNextFrame, aPresContext, desiredSize, kidReflowState, aStatus);
if (gsDebug)
printf ("TR %p for cell %p Incremental Reflow: desired=%d, MES=%d\n",
@@ -1264,6 +1265,7 @@ NS_METHOD nsTableRowFrame::IR_TargetIsChild(nsIPresContext& aPresContext,
// Now reflow the cell again this time constraining the width
// XXX Ignore for now the possibility that the column width has changed...
kidReflowState.maxSize.width = availWidth;
kidReflowState.widthConstraint = eHTMLFrameConstraint_Constrained;
rv = ReflowChild(aNextFrame, aPresContext, desiredSize, kidReflowState, aStatus);
// Place the child after taking into account it's margin and attributes