我是 extjs 的新手。我想使用 extjs 构建一个页面。
_________________________
|高清______________________|
| p1 <|p2 |
| | |--> 将是一个视口(将在窗口大小调整时调整大小而没有任何
| | | 滚动条
| | |
| | |
| |
|____________|_______________|
HD --> 宽度为 100 的标题
p1 --> 面板 1 将在西边折叠并拆分 = true
- p2 --> 将占据剩余位置的面板 2
我构建了结构,但即使在调整窗口大小时也未能保持 100%
代码片段
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();
})
我该如何实施?
请帮我。