mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 13:51:41 +00:00
Bug 399961 GetCellAt returning invalid element for partially visible cells r=enn sr=roc a=schrep
This commit is contained in:
parent
36af5950a4
commit
50e8d8f9ad
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user