`
编程足球
  • 浏览: 250777 次
  • 性别: Icon_minigender_1
  • 来自: 福州
社区版块
存档分类
最新评论

view.getComputedStyle(div.firstChild.firstChild, null) is null

    博客分类:
  • Ext
 
阅读更多
最近在开发时候发现一个很奇怪的错误:




Ext 代码如下:
var east = new Ext.Panel({
        region:'east',
        margins:'5 0 5 5',
        //split:false,
        width: 350,
        layout:'fit',
        //title:'讨论区',
        autoScroll :true,
        html:'<iframe scrolling="auto" frameborder="0" width="100%" height="100%" src="web/analyse/remark.jsp?orId=' + orId + '&arId=' + arId + '"></iframe>',
        collapsed: true,
        collapsible: true,
        title: '讨论区',
        plugins: [Ext.ux.PanelCollapsedTitle],
        listeners:{  
  	 		"beforecollapse":function(panel){  
  				panel.setTitle("点击可展开讨论区,或点击上面<<展开并固定讨论区");
    		},
    		"beforeexpand":function(panel){  
  				panel.setTitle("讨论区");
    		}    
    	}
                //tbar:tbar,
        //contentEl:'or_infor'
    });


很奇怪的一个bug,发现每次点击页面闭合或展开后Panel的iFrame每次都重新加载,并且保持
解决方案就是设置属性
hideMode :'visibility',


就不会报错。

目前的情况就是每次点击展开和合并Panel,页面都会重新加载,有高手希望可以解答下。
  • 大小: 14.5 KB
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics