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

git-svn-id: svn://10.0.0.236/trunk@78712 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
karnaze%netscape.com
2000-09-11 04:14:02 +00:00
parent 5a43db5750
commit 0841e82221
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) {