bug 51727 - rebalance table cols when fixed cell gets smaller and was the contributor of the previous col width. r=rods.

git-svn-id: svn://10.0.0.236/trunk@78873 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
karnaze%netscape.com
2000-09-12 14:24:35 +00:00
parent 02a94ae7b7
commit 347661a45d
2 changed files with 12 additions and 4 deletions

View File

@@ -1793,12 +1793,16 @@ PRBool BasicTableLayoutStrategy::ColumnsAreValidFor(const nsTableCellFrame& aCel
return PR_FALSE; // XXX add cases where table has coord width
}
}
if ((colFrame->GetWidth(FIX_ADJ) > 0) && (colFrame->GetWidth(FIX) <= 0)) {
nscoord colFix = colFrame->GetWidth(FIX);
if ((colFrame->GetWidth(FIX_ADJ) > 0) && (colFix <= 0)) {
if (desChanged) {
return PR_FALSE; // its unfortunate that the balancing algorithms cause this
// XXX add cases where table has coord width
// XXX add cases where table has coord width
}
}
if ((colFix > 0) && (desChanged) && (cellDes < aPrevCellDes) && (aPrevCellDes == colFix)) {
return PR_FALSE;
}
}
else { // the column width is not constrained
if (desChanged) {