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

This commit is contained in:
karnaze@netscape.com
2000-09-12 14:24:35 +00:00
parent ec1b9e265d
commit 64ecb97ac3
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) {