PDA

View Full Version : TreePanel work fine in ext2 but have problem in ext3



kjying
23 Jul 2009, 4:12 AM
the following code work fine when i use ext2 ,but after i switch to ext3,there is some problem:
1. the treepanel no longer fill the 100% height
2. after expand the tree, the scroll bar doesn't come out


Ext.onReady(function() {
var kpiTree = new Ext.tree.TreePanel({
el:'tree',
animate:true,
autoScroll:true,
enableDD:true,
containerScroll: true,
ddScroll :false,
rootVisible : false,
root : new Ext.tree.AsyncTreeNode({
text : 'Monitor',
draggable : false,
id : '1',
expanded : true,
loader : new Ext.tree.TreeLoader({
dataUrl : ctx + '/oam/topoNode_getTree.action'
})
})
});
......
......
kpiTree.render();
});




......
......
<style type="text/css">
#tree {
margin: 0px;
border: 0px solid #c3daf9;
width: 250px;
height: 100%;
}
</style>
</head>
<body id="body">
<div id="tree"></div>
</body>
</html>

Condor
23 Jul 2009, 4:21 AM
1. Are you using ManagedIframe (MIF)? Did you also upgrade it?

2. height:100% isn't something that will work cross-browser. I suggest a fixed height or using the FitToParent plugin.

kjying
25 Jul 2009, 8:44 PM
FitToParent works
thanks