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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user