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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user