善待自己,珍惜今天,恩泽他人,享受生活

不放弃任何解决困难的机会,人的一生就是解决困难的过程。 当我们走完一生才能说没有问题要解决了。 面对工作、生活上的压力,面对来自家庭、朋友、同事、上司等的困惑。 要排除万难,否则我们就会被万难排除!

博客园 首页 新随笔 联系 订阅 管理

确定是否为Border布局,
然后详细的错误信息为:SCRIPT5007: 无法获取属性“flex”的值: 对象为 null 或未定义
如果是,则在页面里面肯定少了一个region为center的panel
解决起来也就十分Easy了,直接添加一个regionewingcenter的panel即可

 

例如:如果声明了一下两个Panel

this.P_north = this.EF.getFormPanel({ bodyStyle: "padding-top:2px;padding-left:2px;", tbar: toolbar,
       height: 28, frame: false, border: true, region: 'north', layout: "hbox"
   });
   this.P_center = this.EF.getFormPanel({ layout: "fit", region: 'center', frame: false, border: false, items: [] });
在加载的时候:仅仅加载this.P_north ,则会包以上错误,将this.P_center一同加载就没有问题了

/** 初始化界面 **/
   initFace: function() {
       new Ext.Viewport({
           border: false,
           layout: "border",
           items: [this.P_north, this.P_center]
       });
   }

posted on 2012-04-02 12:01  笨笨丁  阅读(834)  评论(0编辑  收藏  举报