2015-02-10 116 views

回答

1

最好的办法是使用容器

这里是例子:

var container = { 
xtype : 'container', 
layout : 'hbox', 
style : 'margin-bottom: 5px;', 
items : [ 
    { 
     xtype: 'label', 
    text: 'a Label', 
    }, 
    { 
     xtype : 'container', 
     width : 85, 
     items : { 
      xtype : "button", 
      text : "button", 
      width : 70    
     } 
    }  
]}; 

希望这项工作。

相关问题