2016-08-12 1 views

답변

0

대신 border layout을 사용하고 싶습니다. 왼쪽과 오른쪽 지역 (서쪽과 동쪽)에는 고정 된 너비가 주어집니다. 중앙 영역은 중간이며 기본적으로 남은 너비가 모두 사용됩니다.

0

Ext.layout.container.Column 설명에 따르면이 같은 일을 할 수 있습니다

// Mix of width and columnWidth -- all columnWidth values must add up 
// to 1. The first column will take up exactly 120px, and the last two 
// columns will fill the remaining container width. 

Ext.create('Ext.Panel', { 
    title: 'Column Layout - Mixed', 
    layout:'column', 
    items: [{ 
     title: 'Column 1', 
     width: 120 
    },{ 
     title: 'Column 2', 
     columnWidth: 0.7 
    },{ 
     title: 'Column 3', 
     columnWidth: 0.3 
    }], 
    renderTo: Ext.getBody() 
});