bug 60807 - reduce avail width by fixed widths when calculating colspan widths. sr=attinasi, r=bernd.mielke@snafu.de

This commit is contained in:
karnaze%netscape.com 2001-04-15 17:08:04 +00:00
Родитель 669167f107
Коммит 59d86fa19d
2 изменённых файлов: 10 добавлений и 10 удалений

Просмотреть файл

@ -672,12 +672,12 @@ BasicTableLayoutStrategy::ComputeNonPctColspanWidths(PRInt32 aWidthInd
fixLimitTotal = ((fixTotal - fixMinTotal) < availWidth) ? fixTotal - fixMinTotal : availWidth;
desLimitTotal = ((autoDesTotal - autoMinTotal) < availWidth) ? autoDesTotal - autoMinTotal : availWidth;
}
else {
if (autoDesTotal > 0) {
availWidth -= pctTotal + fixTotal; // the pct and fix cols already reached their values
else { // FIX or DES_CON with LIMIT_NONE
if (FIX == aWidthIndex) {
availWidth -= pctTotal;
}
else if (fixTotal > 0) {
availWidth -= pctTotal; // the pct already reached their values
else if (DES_CON == aWidthIndex) {
availWidth -= pctTotal + fixTotal;
}
}

Просмотреть файл

@ -672,12 +672,12 @@ BasicTableLayoutStrategy::ComputeNonPctColspanWidths(PRInt32 aWidthInd
fixLimitTotal = ((fixTotal - fixMinTotal) < availWidth) ? fixTotal - fixMinTotal : availWidth;
desLimitTotal = ((autoDesTotal - autoMinTotal) < availWidth) ? autoDesTotal - autoMinTotal : availWidth;
}
else {
if (autoDesTotal > 0) {
availWidth -= pctTotal + fixTotal; // the pct and fix cols already reached their values
else { // FIX or DES_CON with LIMIT_NONE
if (FIX == aWidthIndex) {
availWidth -= pctTotal;
}
else if (fixTotal > 0) {
availWidth -= pctTotal; // the pct already reached their values
else if (DES_CON == aWidthIndex) {
availWidth -= pctTotal + fixTotal;
}
}