PDA

View Full Version : [CLOSED-664] Ext.tree.TreePanel display error in WebKit / Adobe air



piroman
26 Feb 2010, 6:09 AM
Ext.tree.TreePanel is displaying errors after you expand a node and collapse it again in WebKit/Adobe Air, this only happens if you use

animate: true

in config of the tree panel

i attached a simple screenshot of the problem expanded/collapsed, the panel worked fine in Extjs 2.3

evant
26 Feb 2010, 6:22 AM
Please post a test case that demonstrates the issue.

piroman
26 Feb 2010, 6:26 AM
My.FoldersTree = Ext.extend(Ext.tree.TreePanel, {
animate: true,
loader: new Ext.tree.FileTreeLoader({
directory: 'root',
dirOnly: true
}),
containerScroll: true,
rootVisible: false,
autoScroll: true,
border: false,
title: 'Folders',
header: false,
lines: false,
cls: 'folders',
layout: 'fit',

initComponent : function() {
My.FoldersTree.superclass.initComponent.call(this);
var root = new Ext.tree.AsyncTreeNode({
text: 'Desktop',
iconCls: 'desktop',
expanded: true,
allowDrag: false,
directory: 'root',
allowDrop: false,
children: [{
text: 'Documents',
url: air.File.documentsDirectory.nativePath,
iconCls: 'folder'
},
{
text: 'Computer',
url: 'root',
iconCls: 'computer'
}]
});
this.setRootNode(root);
}
});




using the file tree loader from here

http://www.extjs.com/forum/showthread.php?p=441352#post441352

evant
18 Mar 2010, 8:07 PM
I wasn't able to reproduce this.

Please provide a drop in sample (doesn't depend on anything else) that can be run.

Thanks.

piroman
19 Mar 2010, 2:05 AM
i found the problem

it is caused by Ext.ux.ManagedIFrame.js

when u include that plugin and use trees the problem occurred

thanks i guess it can be closed

will check the plugin to see why is doing this

piroman
19 Mar 2010, 2:26 AM
here is the project

piroman
19 Mar 2010, 2:32 AM
idea 9 zip project attached

extjs needs to be copied into the project