PDA

View Full Version : TreePanel Node Collapse Issue



allionn
26 Aug 2014, 1:08 AM
I'm using ExtJS 3.4.0 and I'm stuck with the following issues.
1. When I click on "-" to collapse TreePanel's Node, which is previously expanded by click on "+", it becomes collapsed but leaves blank space below. A height of this blank space equals to a total height of the Node's child nodes.
2. I have clicked on "+" to expand upper level node and the same for the one of its sub-nodes. Then I click on "-" to collapse this expanded upper level node. The node becomes collapsed but I can see child nodes of its sube-node.
Please tell me where is my mistake?

Here is my code:
var wnd_AdvContextRegionSelect4E1A = new Ext.tree.TreePanel({
id: "wnd_AdvContextRegionSelect4E1A",
autoScroll: true,
border: false,
lines: false,
loader: new Ext.app.AdvContextRegionTreeLoader({dataUrl: AppURL, baseParams:{act: "getRegions", mod: "acr"}}) ,
root: new Ext.tree.AsyncTreeNode(),
rootVisible: false,
singleExpand: false,
useArrows: false
});

var wnd_AdvContextRegionSelect3E1 = new Ext.Panel({
id: "wnd_AdvContextRegionSelect3E1",
bodyStyle: "background: transparent;",
border: false,
height: 450,
layout: "fit",
maxHeight: 450,
maxWidth: 350,
minHeight: 450,
minWidth: 350,
width: 350,
items:[
wnd_AdvContextRegionSelect4E1A
]
});