전체 응용 프로그램을 렌더링 할 Div 컨테이너가 하나 있습니다. 신청서는 Div 전체의 너비를 기입해야합니다.ExtJS - Div의 패널을 100 %로 설정합니다.
다음 div를 모두 사용해 보았지만 div 컨테이너가 100 %가 아니며 콘텐츠가없는 것처럼 너비가 없습니다. 뭐가 잘못 되었 니?
<div id="stuff"></div>
및
<div style="width: 100%;" id="stuff"></div>
내의 ExtJS 응용 프로그램 :
launch: function() {
var div = Ext.Element.get('stuff');
Ext.create('Ext.panel.Panel', {
renderTo: div,
width: "100%",
height: 500,
title: 'Container Panel',
layout: 'border',
items: [
{
xtype: 'panel',
title: 'Child Panel 1',
height: '80%',
width: '100%'
},
{
xtype: 'panel',
title: 'Child Panel 2',
html: 'textextetxtext',
height: '80%',
width: '100%'
}
]
});
}