Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Fixed
-
Adobe Flex SDK 2.0.1 (Release)
-
None
-
Affected OS(s): All OS Platforms
Affected OS(s): All OS Platforms
Language Found: English
Description
Reproduction:
1. run TileList_sample.mxml, then make the browser size large enough,
2. select and drag the data item "bbb," move to the bottom "slowly", and drop under the "hhh"
3. make sure that now "bbb" is at the bottom
4. select "bbb," and drag item "bbb," move to the bottom, and drop over the "aaa"
5. make sure that now "bbb" is at the top
6. again, select and drag the data item "bbb," move to the bottom , and drop under the "hhh"
7. make sure that now "bbb" is at the bottom, agian
8. select "bbb," and drag & drop over the "ggg"
Actual Results:
Error: current が beforeFirst または afterLast である場合は削除できません
at ListCollectionView.as$13::ListCollectionViewCursor/remove()[C:\dev\flex\sdk\frameworks\mx\collections\ListCollectionView.as:1978]
at mx.controls.listClasses::ListBase/mx.controls.listClasses:ListBase::dragCompleteHandler()[C:\dev\flex\sdk\frameworks\mx\controls\listClasses\ListBase.as:7267]
at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.core::UIComponent/dispatchEvent()[C:\dev\flex\sdk\frameworks\mx\core\UIComponent.as:8323]
at mx.managers.dragClasses::DragProxy/mouseUpHandler()[C:\dev\flex\sdk\frameworks\mx\managers\dragClasses\DragProxy.as:550]
Expected Results:
Workaround:
Test Case:
TileList_sample.mxml
===============
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:Script>
<![CDATA[
import mx.collections.ArrayCollection;
[Bindable]
private var testAC:ArrayCollection
= new ArrayCollection(["aaa","bbb","ccc","ddd","eee","fff","ggg","hhh"]);
]]
>
</mx:Script>
<mx:TileList id="tl1" dataProvider="
{testAC}"
columnWidth="650"
rowHeight="200"
itemRenderer="LabelRenderer"
dragEnabled="true"
dropEnabled="true"
dragMoveEnabled="true"
x="99" y="49" width="643" height="650"/>
</mx:Application>
LabelRenderer.mxml
===============
<?xml version="1.0" encoding="utf-8"?>
<mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" width="100%" height="100%">
<mx:Label text="
" width="100%" height="100%"/>
</mx:Canvas>