bug 19961 - in standard mode, honor fixed cols and give remaining space to auto cols if there are any. a=buster, r=dcone

This commit is contained in:
karnaze%netscape.com 2000-10-05 21:01:10 +00:00
parent 39818931bd
commit ddd14a6264
2 changed files with 2 additions and 2 deletions

View File

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

View File

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