Viewport.js 883 Bytes
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'
            }
        }]
    }
});