extjs 写的树形菜单在ie6下无法显示???在Firefox下显示正常,这是为什么呢?

解决方案 »

  1.   

    看看是否 treepanel的height 没写
      

  2.   

    Ext.onReady(function(){
     
           var tabPanel = new Ext.TabPanel( {
    region : 'center',
    enableTabScroll : true,
    deferredRender : false,
    activeTab : 0,
    });

    var addPanel = function(btn, event) {
    var n;
    n = tabPanel.getComponent(btn.id);
    if(n) {
    tabPanel.setActiveTab(n);
    return;
    }
    n = tabPanel.add( {
    id : btn.id,
    title : btn.text,
    width:10 ,
    html : '<iframe width=100% height=100% src=' + btn.id + ' />',
    //autoLoad : '',
    closable : 'true'
    });
    tabPanel.setActiveTab(n);
    }
         
            Ext.state.Manager.setProvider(new Ext.state.CookieProvider());
            new Ext.Viewport({
                layout:'border',
                items:[{
    region: 'north',
    html: '<table width="100%"><tr><td align="center"><embed src="topcut.jpg" width="100%" height="80"></td></tr><tr background="newmenubg.gif" class="text_write"><td><div align="center"> <a href="http://localhost:8080/7_yjssx_system/PracticingFirstPage.jsp" class="a_write STYLE30">首 页 </a></div></td></tr><table>',
    height: 105,
    minHeight: 100
                    },{
                        region:'west',
                        id:'west-panel',
                        title:'菜单导航',
                        split:true,
                        width: 200,
                        minSize: 175,
                        maxSize: 400,
                        border:0,
                        collapsible: true,
                        layout:'accordion',
                        layoutConfig:{
                            animate:true
                        },
                        items: [{
                            title:'公文管理',
                            border:false,
                            iconCls:'document',
                            xtype: 'treepanel',
                            loader: new Ext.tree.TreeLoader(),
            root: new Ext.tree.AsyncTreeNode({
                expanded: true,
                children: [{
                    text: '管理员',
                    icon:'edit_profile.gif',
                    children: [{
                     id :'http://localhost:8080/7yjssx_systom1.0/yjssxAdmin/AdminSystemFunctionDeploy!preTutorSelectDeploy.action',
                text: '发文拟稿',
                leaf: true,
                     icon:'gif-0498.gif',
                     listeners : {
    click : addPanel
    }
             },{
                id :'test/test2.jsp',
                text: '代办发文',
                leaf: true,
                     icon:'gif-0498.gif',
                     listeners : {
    click : addPanel
    }
             },{
                id :'test/test3.jsp',
                text: '发文查询',
                leaf: true,
                     icon:'gif-0498.gif',
                     listeners : {
    click : addPanel
    }
             },{
                id :'test/test4.jsp',
                text: '流程维护',
                leaf: true,
                     icon:'gif-0498.gif',
                     listeners : {
    click : addPanel
    }
             },{
                id :'test/test5.jsp',
                text: '流程监控',
                leaf: true,
                     icon:'gif-0498.gif',
                     listeners : {
    click : addPanel
    }
             }]
                },
                   tabPanel
                 ]
            });
            
        });