Opened 12 years ago

Closed 12 years ago

#10903 closed defect (duplicate)

dijit.Tree with drag and drop broken

Reported by: z00mantwo Owned by:
Priority: high Milestone: tbd
Component: Dijit Version: 1.4.2
Keywords: dijit.Tree Cc:
Blocked By: Blocking:


dijit.Tree with dnd turned on has a flaw. If it's in a content pane and ends up bigger than the pane so it has scrollbars and you highlight an item in the tree and then move one of the scrollbars it will automatically pickup the item in the tree you highlighted before scrolling. I've confirmed that this does not happen under Dojo 1.3.2. See


for a partial example of the problem. In the "Items" box highlight an item then scroll up and down. In 1.3.2 everything works as expected. In 1.4.2 when you scroll the mouse also picks up the highlighted item while your scrolling. If you let go of the scroll bar it then lets go of the highlighted item. In a dijit.Tree with scroll bars it gets worse and doesn't let go of the item after you stop scrolling.

To show the problem in a dijit.Tree modify


and add


Then add a <div> like

<div dojoType="dijit.layout.ContentPane?" style="height: 75px">

surrounding the

<div class="container" dojoType="dijit.Tree" id="itemTree"

model="itemModel" dndController="dijit.tree.dndSource" checkAcceptance="dndAccept" checkItemAcceptance="itemTreeCheckItemAcceptance" dragThreshold="8" getIconClass="getIcon" persist="false"></div>

<div> near the bottom of the file. Don't forget to close the ContentPane? <div>.

Then highlight an item in the tree and scroll up and down a couple of times. You will see the mouse pickup the item and then won't release or drop it.

Change History (1)

comment:1 Changed 12 years ago by bill

Resolution: duplicate
Status: newclosed

Dup of #10585.

Note: See TracTickets for help on using tickets.