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

git-svn-id: svn://10.0.0.236/trunk@143140 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bmlk%gmx.de
2003-05-31 14:15:56 +00:00
parent ad655df3c4
commit 05fac045c1
2 changed files with 6 additions and 4 deletions

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) {