2.2的是不是有点问题
lu_pp
2008-08-06
我将EXT-ALL.js文件替换成2.2,结果发现以前在2.1下面可以显示的
TreePanel不显示了 代码如下 gametreeroot = new Ext.tree.AsyncTreeNode({ text : '', draggable : false }); gametreeroot.appendChild(new Ext.tree.TreeNode({ id : "gametreeroot1", text : "游戏管理", listeners : { 'click' : function(node, event) { doGametreeroot1Action(node, event, maincontent); } } })); gametreeroot.appendChild(new Ext.tree.TreeNode({ id : "gametreeroot2", text : "游戏分类", listeners : { 'click' : function(node, event) { doGametreeroot2Action(node, event, maincontent); } } })); gametreeroot.appendChild(new Ext.tree.TreeNode({ id : "gametreeroot3", text : "手机厂商", listeners : { 'click' : function(node, event) { doGametreeroot3Action(node, event, maincontent); } } })); gametreeroot.appendChild(new Ext.tree.TreeNode({ id : "gametreeroot4", text : "手机型号", listeners : { 'click' : function(node, event) { doGametreeroot4Action(node, event, maincontent); } } })); gameTreepanel = new Ext.tree.TreePanel({ titleCollapse : false, rootVisible : false, root : gametreeroot, useArrows : true, autoScroll : true }); gamePanel = new Ext.Panel({ title : "游戏管理", autoShow : true, hideMode : "visibility", items : [gameTreepanel] }); toolbox = new Ext.Panel({ region : 'west', title : '系统菜单', maxSize : 300, frame : false, collapsible : true, margins : '0 0 0 5', layout : 'accordion', width : 210, minSize : 150, defaults : { bodyStyle : "background: transparent;", border : true, frame : true }, layoutConfig : { titleCollapse : true, renderHidden : false, hideCollapseTool : false, renderHidden : false, border : true, collapseFirst : false, animate : true }, items : [gamePanel] }); |
|
lu_pp
2008-08-06
不知道有没有人遇到和我一样的情况
|
|
kimmking
2008-08-06
ext-base的版本和ext-all必须一致
|
|
lu_pp
2008-08-07
都放了,还是无效
|