1

当方向改变时,我尝试设置布局,但我得到了这种类型的错误:

*Console.js:17Uncaught Error: [ERROR][Ext.Container#setLayout] Replacing a layout after one has already been initialized is not currently supported.*

我无法得到,这里发生了什么。这是我的代码:

  onOrientationChange:function(viewport, orientation){  
        viewport.setLayout('vbox');
  }

视口在哪里:

Ext.define("Q4.view.blg", {
    extend: 'Ext.Container',
    xtype:  'blg',
    config:{    
        title:"blg",
        iconCls:'star',
        cls:'blogList',
        disableSelection: true,
        layout: 'hbox',
        defaults:{
            scrollable:false
        },........

谢谢 !!!!!!

4

0 回答 0