Opened 6 years ago

Closed 6 years ago

#5383 closed defect (wontfix)

Bug in TreeV3 DnD for Dojo 0.4.3

Reported by: guest Owned by:
Priority: high Milestone:
Component: Dijit Version: 0.4.2rc1
Keywords: TreeV3 DnD 0.4.3 Cc:
Blocked by: Blocking:

Description

Consider the following markup

<!DOCTYPE HTML PUBLIC "-W3CDTD HTML 4.01EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Test</title>

<script type="text/javascript">

var djConfig = {isDebug: true};

</script>
<script type="text/javascript" src="js/dojo.js"></script>
<script language="JavaScript" type="text/javascript">

dojo.require("dojo.widget.TreeV3");
dojo.require("dojo.widget.TreeNodeV3");
dojo.require("dojo.widget.TreeSelectorV3");
dojo.hostenv.writeIncludes();

</script>
</head>

<body>
<div dojoType="TreeBasicControllerV3" widgetId="controller"></div>
<div dojoType="TreeDndControllerV3" controller="controller" widgetId="dndController"></div>

<div dojoType="TreeV3" widgetId="filesystem" DNDMode="onto" DNDAcceptTypes="filesystem" toggler="fade" sizeMin="20" sizeShare="20"

listeners="controller;dndController" expandLevel="2">

<div dojoType="TreeNodeV3" title="Êîðåíü">

<div dojoType="TreeNodeV3" title="Folder1">

<div dojoType="TreeNodeV3" title="Folder11" isFolder="true"></div>
<div dojoType="TreeNodeV3" title="Folder12" isFolder="true"></div>

</div>

</div>

</div>
</body>
</html>

Notice that nodes Folder11 and Folder12 are marked with isFolder attribute although they don't contain subnodes. It is deliberate.

Drag node Folder12 onto Folder11. Folder12 still has a plus sign to the right of it. It's OK. Now drag Folder12 back onto Folder1. Now Folder12 is still a "folder", but Folder11 is not (no plus sign). In case when tree is expanded dynamically that will prevent from expanding Folder11 although it may have subfolders. Definitely isFolder attribute must be preserved during drag operations.

This behaviour was observed in both IE 7.0 and Firefox 2.0.0.11.

Change History (2)

comment:1 Changed 6 years ago by elazutkin

  • Component changed from DnD to Dijit
  • Owner elazutkin deleted
  • Priority changed from high to normal
  • severity changed from major to normal

comment:2 Changed 6 years ago by bill

  • Resolution set to wontfix
  • Status changed from new to closed

Hi, sorry, we're not fixing bugs in the 0.4 line anymore; please use 1.0.

Note: See TracTickets for help on using tickets.