bug 56024 - if there is no desired content width for a col, don't include the min content in totals. a=buster, r=attinasi.

This commit is contained in:
karnaze%netscape.com 2000-10-13 01:57:02 +00:00
Родитель e2a869caf5
Коммит 8c7b326021
2 изменённых файлов: 12 добавлений и 6 удалений

Просмотреть файл

@ -1418,9 +1418,12 @@ void BasicTableLayoutStrategy::CalculateTotals(PRInt32& aCellSpacing,
// desired alone is lowest priority
aTotalCounts[DES_CON]++;
aTotalWidths[DES_CON] += colFrame->GetDesWidth();
aTotalAvailWidths[DES_CON] = aTotalWidths[DES_CON];
aMinWidths[DES_CON] += minCol;
nscoord desWidth = colFrame->GetDesWidth();
if (desWidth > 0) {
aTotalWidths[DES_CON] += desWidth;
aTotalAvailWidths[DES_CON] = aTotalWidths[DES_CON];
aMinWidths[DES_CON] += minCol;
}
}
// if it is not a degenerate table, add the last spacing on the right
if (numCols > 0) {

Просмотреть файл

@ -1418,9 +1418,12 @@ void BasicTableLayoutStrategy::CalculateTotals(PRInt32& aCellSpacing,
// desired alone is lowest priority
aTotalCounts[DES_CON]++;
aTotalWidths[DES_CON] += colFrame->GetDesWidth();
aTotalAvailWidths[DES_CON] = aTotalWidths[DES_CON];
aMinWidths[DES_CON] += minCol;
nscoord desWidth = colFrame->GetDesWidth();
if (desWidth > 0) {
aTotalWidths[DES_CON] += desWidth;
aTotalAvailWidths[DES_CON] = aTotalWidths[DES_CON];
aMinWidths[DES_CON] += minCol;
}
}
// if it is not a degenerate table, add the last spacing on the right
if (numCols > 0) {