зеркало из https://github.com/mozilla/pjs.git
Fix for bug 135048 - Folder pane won't auto scroll down during drag and drop.
Covers 134889 also. r=bryner, sr=ben, a=asa
This commit is contained in:
Родитель
f91c486ad6
Коммит
f703c41034
|
@ -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;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче