bug 19961 (partial) - in standard mode, give last remaining space to auto cols if there are any.

This commit is contained in:
karnaze@netscape.com
2000-09-11 04:14:02 +00:00
parent 5fccb0fd54
commit 8eaed18444
2 changed files with 10 additions and 8 deletions

View File

@@ -323,14 +323,15 @@ BasicTableLayoutStrategy::BalanceColumnWidths(nsIPresContext* aPresCont
if ( (tableIsAutoWidth && (perAdjTableWidth - totalAllocated > 0)) ||
(!tableIsAutoWidth && (totalAllocated < maxWidth)) ) {
if (totalCounts[PCT] != numCols) {
//PRBool onlyAuto = (totalCounts[DES_CON] > 0) && !mIsNavQuirksMode;
PRBool onlyAllocateAutoCols = (totalCounts[DES_CON] > 0) && !mIsNavQuirksMode;
for (colX = 0; colX < numCols; colX++) {
if (PCT == allocTypes[colX]) {
allocTypes[colX] = -1;
}
//else if ((FIX == allocTypes[colX]) && onlyAuto) {
// allocTypes[colX] = -1;
//}
else if (onlyAllocateAutoCols && (DES_CON != allocTypes[colX]) &&
(DES_ADJ != allocTypes[colX])) {
allocTypes[colX] = -1;
}
}
}
if (tableIsAutoWidth) {