Я новичок в extjs. Я хочу построить страницу, используя extjs.
_________________________
| HD ______________________ |
| p1 <| p2 | <br />
| | | -> будет окном просмотра (будет изменять размер окна без изменения размера
| | | Полоса прокрутки
| | |
| | |
| | |
| ____________ | _______________ |
Я строю структуру, но не смог сохранить ее на 100% даже при изменении размера окна
КОД SNIPPET
EditorUi = Ext.extend(Ext.Viewport, {
layout: 'fit',
initComponent: function() {
this.items = [{
xtype: 'panel',
title: 'Heading',
autoHeight: true,
autoWidth: true,
layout: 'hbox',
items: [{
xtype: 'panel',
title: 'Navigation',
collapsible: true,
region: 'west',
width: 200,
split: 'true',
margins: '3 0 3 3',
cmargins: '3 3 3 3'
}, {
xtype: 'panel',
title: 'container',
region: 'center',
autoHeight: true,
autoWidth: true,
split: 'true',
margins: '3 0 3 3',
cmargins: '3 3 3 3'
}]
}];
EditorUi.superclass.initComponent.call(this);
}
});
Ext.onReady(function() {
new EditorUi();
})
Как я могу это реализовать?
Пожалуйста, помогите мне.