Bug 399961 GetCellAt returning invalid element for partially visible cells r=enn sr=roc a=schrep

This commit is contained in:
neil@parkwaycc.co.uk 2007-11-15 14:04:10 -08:00
parent 36af5950a4
commit 50e8d8f9ad

View File

@ -1614,13 +1614,9 @@ nsTreeBodyFrame::GetCellAt(nscoord aX, nscoord aY, PRInt32* aRow,
continue;
}
if (!OffsetForHorzScroll(cellRect, PR_TRUE))
if (!OffsetForHorzScroll(cellRect, PR_FALSE))
continue;
PRInt32 overflow = cellRect.x+cellRect.width-(mInnerBox.x+mInnerBox.width);
if (overflow > 0)
cellRect.width -= overflow;
if (aX >= cellRect.x && aX < cellRect.x + cellRect.width) {
// We know the column hit now.
if (aCol)