bug 42033 (patch submitted by bernd.mielke@snafu.de) - give 0 proportional cols their min width. sr=waterson, r=karnaze.
git-svn-id: svn://10.0.0.236/trunk@83147 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -408,7 +408,9 @@ void BasicTableLayoutStrategy::AllocateUnconstrained(PRInt32 aAllocAmount,
|
||||
PRInt32 colX;
|
||||
PRInt32 numCols = mTableFrame->GetColCount();
|
||||
for (colX = 0; colX < numCols; colX++) {
|
||||
if (-1 != aAllocTypes[colX]) {
|
||||
nsTableColFrame* colFrame = mTableFrame->GetColFrame(colX);
|
||||
PRBool skipColumn = aSkip0Proportional && (e0ProportionConstraint == colFrame->GetConstraint());
|
||||
if (-1 != aAllocTypes[colX] && !skipColumn ) {
|
||||
divisor += mTableFrame->GetColumnWidth(colX);
|
||||
numColsAllocated++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user