during incr. reflow table cells have a unconstrained computed size, they need to ensure that a second constrained reflow is issued on the children, bug 237366, initial idea by saito@densan.co.jp r/sr=dbaron

This commit is contained in:
bmlk%gmx.de 2004-06-05 16:59:46 +00:00
parent 7fc586a3bf
commit 890df88cf5
2 changed files with 4 additions and 0 deletions

View File

@ -1203,6 +1203,8 @@ nsTableRowFrame::IR_TargetIsChild(nsIPresContext* aPresContext,
// which will bias the balancing. Leave the avail width alone, since it is a best guess.
// After the table balances, the cell will get reflowed with the correct computed width.
PRBool resetComputedWidth = aTableFrame.NeedStrategyInit() || aTableFrame.NeedStrategyBalance();
if (resetComputedWidth)
cellFrame->SetNeedPass2Reflow(PR_TRUE);
InitChildReflowState(*aPresContext, cellAvailSize, aTableFrame.IsBorderCollapse(),
p2t, kidRS, resetComputedWidth);

View File

@ -1203,6 +1203,8 @@ nsTableRowFrame::IR_TargetIsChild(nsIPresContext* aPresContext,
// which will bias the balancing. Leave the avail width alone, since it is a best guess.
// After the table balances, the cell will get reflowed with the correct computed width.
PRBool resetComputedWidth = aTableFrame.NeedStrategyInit() || aTableFrame.NeedStrategyBalance();
if (resetComputedWidth)
cellFrame->SetNeedPass2Reflow(PR_TRUE);
InitChildReflowState(*aPresContext, cellAvailSize, aTableFrame.IsBorderCollapse(),
p2t, kidRS, resetComputedWidth);