Fix for bug 135048 - Folder pane won't auto scroll down during drag and drop.

Covers 134889 also.
r=bryner, sr=ben, a=asa


git-svn-id: svn://10.0.0.236/trunk@118594 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
varga%utcru.sk
2002-04-10 04:55:46 +00:00
parent ab4d4cb4b6
commit 208623a2f4

View File

@@ -1042,7 +1042,7 @@ NS_IMETHODIMP nsTreeBodyFrame::GetCellAt(PRInt32 aX, PRInt32 aY, PRInt32* aRow,
// Check if the coordinates are actually in our visible space.
PRInt32 rowCount;
mView->GetRowCount(&rowCount);
if (*aRow < mTopRowIndex || *aRow >= PR_MIN(mTopRowIndex+mPageCount, rowCount)) {
if (*aRow < mTopRowIndex || *aRow > PR_MIN(mTopRowIndex+mPageCount, rowCount - 1)) {
*aRow = -1;
return NS_OK;
}