avoid marking columns that only have a desired width empty, what would exclude them from space redistribution, bug 194024, r=jkeiser sr=bzbarsky

This commit is contained in:
bmlk@gmx.de
2003-05-31 14:15:56 +00:00
parent ef067b0a11
commit 560cdbe972
2 changed files with 6 additions and 4 deletions
+3 -2
View File
@@ -270,8 +270,9 @@ BasicTableLayoutStrategy::BalanceColumnWidths(nsIPresContext* aPresCont
nscoord colMinWidth = colFrame->GetMinWidth();
mTableFrame->SetColumnWidth(colX, colMinWidth);
minTableWidth += colMinWidth;
if ((colFrame->GetMinWidth() > 0) || (colFrame->GetFixWidth() > 0) ||
(colFrame->GetPctWidth() > 0) || (colFrame->GetWidth(MIN_PRO) > 0)) {
if ((colFrame->GetMinWidth() > 0) || (colFrame->GetDesWidth() > 0) ||
(colFrame->GetFixWidth() > 0) || (colFrame->GetPctWidth() > 0) ||
(colFrame->GetWidth(MIN_PRO) > 0)) {
numNonZeroWidthCols++;
}
if (mTableFrame->GetNumCellsOriginatingInCol(colX) > 0) {