overwrite spurious percent colspan widths - bug 46944 r=karnaze sr=attinasi

This commit is contained in:
bernd.mielke@snafu.de
2001-04-27 04:03:48 +00:00
parent b6d655111e
commit fa3cc948ff
2 changed files with 4 additions and 0 deletions

View File

@@ -1527,6 +1527,8 @@ BasicTableLayoutStrategy::AssignPctColumnWidths(const nsHTMLReflowState& aReflow
float cellPct = 0.0f;
if (eStyleUnit_Percent == cellPosition->mWidth.GetUnit()) {
cellPct = cellPosition->mWidth.GetPercentValue();
if (colSpan == numEffCols)
cellPct = 1.0f; // overwrite spurious percent colspan width's - bug 46944
cellPctWidth = nsTableFrame::RoundToPixel(NSToCoordRound( ((float)basis) * cellPct ), aPixelToTwips);
if (!mIsNavQuirksMode) {
// need to add padding