This is an automated email from the ASF dual-hosted git repository.

yishayw pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git


The following commit(s) were added to refs/heads/develop by this push:
     new d0fc3d3  Fix dragSource always being added last in ArrayList
d0fc3d3 is described below

commit d0fc3d3ec755af5788d341ae961057aa10167b9a
Author: DESKTOP-RH4S838\Yishay <yishayj...@hotmail.com>
AuthorDate: Mon Dec 17 18:26:12 2018 +0200

    Fix dragSource always being added last in ArrayList
---
 .../apache/royale/html/beads/SensitiveSingleSelectionDropTargetBead.as  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/frameworks/projects/DragDrop/src/main/royale/org/apache/royale/html/beads/SensitiveSingleSelectionDropTargetBead.as
 
b/frameworks/projects/DragDrop/src/main/royale/org/apache/royale/html/beads/SensitiveSingleSelectionDropTargetBead.as
index a5f3b0a..6a9a41b 100644
--- 
a/frameworks/projects/DragDrop/src/main/royale/org/apache/royale/html/beads/SensitiveSingleSelectionDropTargetBead.as
+++ 
b/frameworks/projects/DragDrop/src/main/royale/org/apache/royale/html/beads/SensitiveSingleSelectionDropTargetBead.as
@@ -338,7 +338,7 @@ package org.apache.royale.html.beads
                        } else if (dataProviderModel.dataProvider is ArrayList)
                        {
                                var dataList:ArrayList = 
dataProviderModel.dataProvider as ArrayList;
-                               dataList.addItem(dragSource);
+                               dataList.addItemAt(dragSource, targetIndex);
                        }
 
                        // Let the dragInitiator know the drop has been 
completed.

Reply via email to