bug 60816 use correct cell when rowspan and colspan overlap. Fix pixel rounding errors. sr=attiansi, r=alexsavulov

This commit is contained in:
karnaze@netscape.com
2001-10-26 02:30:38 +00:00
parent 95f6823404
commit f23661affc
12 changed files with 190 additions and 54 deletions

View File

@@ -219,6 +219,7 @@ FixedTableLayoutStrategy::AssignNonPctColumnWidths(nsIPresContext* aPre
// if there was too much allocated due to rounding, remove it from the last col
if ((colX == lastColAllocated) && (overAllocation != 0)) {
colWidths[colX] -= overAllocation;
colWidths[colX] = nsTableFrame::RoundToPixel(colWidths[colX], aPixelToTwips);
totalColWidth -= colWidths[colX] - PR_MAX(0, colWidths[colX]);
colWidths[colX] = PR_MAX(0, colWidths[colX]);
}