#2318 closed defect (fixed)
dnd error on contentpane loading (0.4.1 regression)
Reported by: | Owned by: | alex | |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | DnD | Version: | 0.4.1 |
Keywords: | dnd, contentpane | Cc: | |
Blocked By: | Blocking: |
Description
Hi, In the main page of a html document, I defined a 'standard' contentpane : <div dojoType="ContentPane?" id="center_subPanel" executeScripts="true" cacheContent="false" refreshOnShow="true" sizeMin="60" sizeShare="60" style="overflow:auto;padding-bottom:5px;"
In my js library, its content is loaded with the setUrl function :
var center_subPanel = dojo.widget.byId('center_subPanel');
center_subPanel.domNode.style.display = 'block';
dojo.event.connect(center_subPanel , 'onLoad' , 'end_onLoad');
center_subPanel.setUrl(url);
To try the Dnd API implementation, I used the provided dojo's html file 'tests/dnd/test_simple.html.'
Everything works fine with the 0.4.0 release. But with the 0.4.1 release, an error appears when loading the pane content : 'this.dropTargets is null', HtmlDragManager?.js, line 135.
Change History (7)
comment:1 Changed 14 years ago by
comment:2 Changed 14 years ago by
Milestone: | → 0.4.2 |
---|---|
Priority: | high → normal |
Summary: | dnd error on contentpane loading (0.4.1) → dnd error on contentpane loading (0.4.1 regression) |
comment:3 Changed 14 years ago by
I think the fix is to insert the following line in src/dnd/HtmlDragManager.js after line 61 (or thereabouts):
dropTargets: [],
comment:4 Changed 14 years ago by
comment:5 Changed 14 years ago by
comment:6 Changed 14 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Brian, Mignion, thanks for finding this!
Hi, In the main page of a html document, I defined a 'standard' contentpane : <div dojoType="ContentPane?" id="center_subPanel" executeScripts="true" cacheContent="false" refreshOnShow="true" sizeMin="60" sizeShare="60" style="overflow:auto;padding-bottom:5px;" >
In my js library, its content is loaded with the setUrl function : var center_subPanel = dojo.widget.byId('center_subPanel'); center_subPanel.domNode.style.display = 'block'; dojo.event.connect(center_subPanel , 'onLoad' , 'end_onLoad'); center_subPanel.setUrl(url);
To try the Dnd API implementation, I used the provided dojo's html file 'tests/dnd/test_simple.html.' So we have : center_subPanel.setUrl('tests/dnd/test_simple.html'); Everything works fine with the 0.4.0 release. But with the 0.4.1 release, an error appears when loading the pane content : 'this.dropTargets is null', HtmlDragManager??.js, line 135.