PDA

View Full Version : TreeEditor display issue



wallacer
16 Jun 2009, 9:51 AM
Hi,

I'm trying to use a treeEditor to allow renaming of a folder structure within the tree. When the treeEditor begins editing, it cuts the top of the tree off up until the editNode, and the top of the tree never becomes visible again.

The treepanel is within a tab Panel

Here's the code for the treepanel, the treeEditor, and the parent panel:


projTree = new Ext.tree.TreePanel({
id: 'proj_tree',
loader: new Ext.tree.TreeLoader({dataUrl: 'proxy/file_tree_json.php'}) ,
root: new Ext.tree.AsyncTreeNode({id: 'project_folders', text: 'project_folders'}),
autoScroll: true,
width: 300,
height: 500
});

projTree.on('contextmenu', projContextHandler);

projTreeEditor = new Ext.tree.TreeEditor(projTree, {
allowBlank:false,
cancelOnEsc:true,
completeOnEnter:true,
ignoreNoChange:true,
revertInvalid: false,

});

var projectManager = new Ext.Panel({
title: 'Project Manager',
id: 'proj_manager',
frame: true,
closable: true,
layout: 'column',

items: projTree
});
mainPanel.add(projectManager);
mainPanel.setActiveTab(projectManager);Here's a screenshot of the issue

http://www.trimensionsoftware.com/tree2.jpg

Any suggestions would be greatly appreciated.
Thanks