PDA

View Full Version : Alpha 2 treepanel rootVisible:false bug



pomata
25 Feb 2007, 12:00 PM
as above,

when declaring treepanel, if u set rootVisible:false, gives problems.....

Regards

mzbirka
25 Feb 2007, 12:07 PM
Hi,

I'm using treepanel through all the series from 0.33 to 1.0a2rev3 without problems in IE6, FF2, Opera9. How your problem demonstrate?

EDIT: of course i'm using it with rootVisible:false...

pomata
25 Feb 2007, 12:22 PM
var tree = new Tree.TreePanel('tree-div', {
animate:true,
loader: new Tree.TreeLoader({dataUrl:'data.php'}),
enableDD:false,
containerScroll: true,
rootVisible:false
});

also have another problem (worked in alpha 1, not now:



tree.on('load', function(){
var f = tree.getNodeById("fechas");
if(f) {f.expand()};
});

above doesn´t work either...... downloaded alpha2 10 min ago...

Thanks and Regards

mzbirka
25 Feb 2007, 12:29 PM
Possibly it is something with the


loader: new Tree.TreeLoader({dataUrl:'data.php'}),

then. I'm not using Exts loaders or "loadxml" calls... Constructing the treepanel programatically using _menuNode.appendChild works even with the root hidden.

pomata
25 Feb 2007, 12:40 PM
noting wrong with the loader....

if u try with Jack example, add
rootVisible:false into reorder.html example, it will break....

Regards

mzbirka
25 Feb 2007, 12:56 PM
I think the example has a loader too / that said I was thinking not your loader has a problem but treeloader as general has a problem - which I can't confirm.

But tree/treepanel without an "loader" works without root visible very well for me and never had a bug in these fast-changing times :)

jack.slocum
25 Feb 2007, 1:23 PM
The image organizer uses rootVisible:false and works fine. If you want help, you need to include more info than "it's broken".

pomata
25 Feb 2007, 1:30 PM
Jack,

in your example reorder.js just replace with following, and you'll see there is a prob...


var tree = new Tree.TreePanel('tree-div', {
animate:true,
loader: new Tree.TreeLoader({dataUrl:'get-nodes.php'}),
enableDD:true,
containerScroll: true,
rootVisible:false
});

gizzmo
26 Feb 2007, 12:26 AM
Hi Jack.

I have the same problem.
If I set rootVisible:false it break, but with rootVisible:true it works.

This is from Firebug:

this.dom has no properties
_6("x-tree-node-loading")ext-all.js (line 20)
_6("x-tree-node-loading")ext-all.js (line 20)
TreeNodeUI("x-tree-node-loading")ext-all.js (line 134)
TreeNodeUI()ext-all.js (line 134)
AsyncTreeNode(false, false, undefined)ext-all.js (line 132)
TreeNode(undefined)ext-all.js (line 130)
TreePanel()ext-all.js (line 126)
(no name)()TreeOutline (line 39)
Observable()ext-all.js (line 16)
EventManager()ext-all.js (line 18 )
[Break on this error] (function(){var D=Ext.lib.Dom;var E=Ext.lib.Event;var A=Ext.lib.Anim;var _4={};v...
// Johan

gizzmo
26 Feb 2007, 6:36 AM
Thanks Jack...

Works great in revision 5.

pomata
26 Feb 2007, 9:47 AM
Many tx, all fine on rev. 5

P