зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
e2a869caf5
Коммит
8c7b326021
|
@ -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) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче