Viewport.js
883 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
Ext.define('MyMA.view.Viewport', {
extend: 'Ext.container.Viewport',
requires: [
'MyMA.view.ProgramMenu',
'MyMA.view.Taskpanel',
'MyMA.view.Users',
'MyMA.view.Aliases'
],
layout: 'fit',
statics: {
ready: false
},
items: {
xtype: 'panel',
layout: 'fit',
border: false,
dockedItems: [{
dock: 'top',
xtype: 'toolbar',
height: 30,
ui: 'programbar-panel',
items: [{
xtype: 'programmenu',
width: 100
}, '-', {
xtype: 'taskpanel',
flex: 1
}]
}],
items: [{
xtype: 'panel',
border: false,
ui: 'desk-panel',
bodyCls: 'x-desk-panel-bg',
layout: {
type: 'fit'
}
}]
}
});