зеркало из https://github.com/mozilla/pjs.git
Fix for bug 142404 - nsXULTreeBuilder::Drop should enable drop if canDropBeforeAfter is true
r=varga, sr=hewitt
This commit is contained in:
Родитель
0c1c916895
Коммит
653f77ec41
|
@ -2068,9 +2068,12 @@ nsXULTreeBuilder::Drop(PRInt32 row, PRInt32 orient)
|
|||
nsCOMPtr<nsIXULTreeBuilderObserver> observer;
|
||||
mObservers->QueryElementAt(i, NS_GET_IID(nsIXULTreeBuilderObserver), getter_AddRefs(observer));
|
||||
if (observer) {
|
||||
PRBool canDropOn = PR_FALSE;
|
||||
observer->CanDropOn(row, &canDropOn);
|
||||
if (canDropOn)
|
||||
PRBool canDrop = PR_FALSE;
|
||||
if (orient == nsITreeView::inDropOn)
|
||||
observer->CanDropOn(row, &canDrop);
|
||||
else
|
||||
observer->CanDropBeforeAfter(row, orient, &canDrop);
|
||||
if (canDrop)
|
||||
observer->OnDrop(row, orient);
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче