2014-04-15 57 views

回答

0

您應該使用佈局:適合父容器的配置。

您可以參考以下示例以瞭解示例用法。

Ext.create('Ext.panel.Panel', { 
title: 'Fit Layout', 
width: 300, 
height: 150, 
layout:'fit', 
items: { 
    title: 'Inner Panel', 
    html: 'This is the inner panel content', 
    bodyPadding: 20, 
    border: false 
}, 
renderTo: Ext.getBody() 
}); 

希望這有助於。 謝謝。