fix for empty tables. we now support tables that have no content.

This commit is contained in:
buster
1998-07-07 00:20:21 +00:00
parent 4292d8b893
commit c5522f4239
6 changed files with 28 additions and 6 deletions

View File

@@ -979,7 +979,7 @@ void BasicTableLayoutStrategy::DistributeExcessSpace(nscoord aTableFixedWidth,
else
totalEffectiveWidthOfAutoColumns += mTableFrame->GetColumnWidth(autoColumns[i]);
}
excess = aTableFixedWidth - totalEffectiveWidthOfAutoColumns;
excess = aTableFixedWidth - aComputedTableWidth;
// 2. next, compute the proportion to be added to each column, and add it
for (i = 0; i<numAutoColumns; i++)
{