Fixing a bug in the distribution of excess space to multiple row groups.

This commit is contained in:
hyatt%netscape.com 1999-06-15 07:06:55 +00:00
parent 70c43af439
commit 5f6e627b54
2 changed files with 2 additions and 2 deletions

View File

@ -4305,6 +4305,7 @@ nscoord nsTableFrame::ComputeDesiredHeight(nsIPresContext& aPresContext,
}
rowGroupFrame=mFrames.FirstChild();
nscoord y=0;
nscoord rowGroupYPos = 0;
while (nsnull!=rowGroupFrame)
{
const nsStyleDisplay *rowGroupDisplay;
@ -4312,7 +4313,6 @@ nscoord nsTableFrame::ComputeDesiredHeight(nsIPresContext& aPresContext,
if (PR_TRUE==IsRowGroup(rowGroupDisplay->mDisplay))
{
nscoord excessForGroup = 0;
nscoord rowGroupYPos = 0;
DistributeSpaceToRows(aPresContext, aReflowState, rowGroupFrame, sumOfRowHeights,
excess, tableStyle, excessForGroup, rowGroupYPos);
}

View File

@ -4305,6 +4305,7 @@ nscoord nsTableFrame::ComputeDesiredHeight(nsIPresContext& aPresContext,
}
rowGroupFrame=mFrames.FirstChild();
nscoord y=0;
nscoord rowGroupYPos = 0;
while (nsnull!=rowGroupFrame)
{
const nsStyleDisplay *rowGroupDisplay;
@ -4312,7 +4313,6 @@ nscoord nsTableFrame::ComputeDesiredHeight(nsIPresContext& aPresContext,
if (PR_TRUE==IsRowGroup(rowGroupDisplay->mDisplay))
{
nscoord excessForGroup = 0;
nscoord rowGroupYPos = 0;
DistributeSpaceToRows(aPresContext, aReflowState, rowGroupFrame, sumOfRowHeights,
excess, tableStyle, excessForGroup, rowGroupYPos);
}