bug 60816 use correct cell when rowspan and colspan overlap. Fix pixel rounding errors. sr=attiansi, r=alexsavulov
This commit is contained in:
@@ -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]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user