Hey all, temporarily I am using:
Code:
Ext.application({
name: 'Advertiser',
appFolder: '/js/Portal/Advertiser',
launch: function () {
Ext.create('Portal.Advertiser.view.Viewport');
}
});
But I would like to use:
Code:
Ext.application({
name: 'Advertiser',
appFolder: '/js/Portal/Advertiser',
autoCreateViewport: true
});
However nothing loads when trying to use autoCreateViewport. When I do the explicit create it loads.
Here is my viewport:
Code:
Ext.define('Portal.Advertiser.view.Viewport', {
extend: 'Ext.container.Viewport',
layout: 'border',
initComponent: function () {
this.items = [{
xtype: 'container',
region: 'north',
height: 100
}, {
xtype: 'container',
region: 'west',
width: 200,
items: [{
xtype: 'panel',
html: 'Menu'
}]
}, {
xtype: 'tabpanel',
region: 'center',
activeTab: 0,
items: [{
xtype: 'panel',
title: 'Dashboard',
html: 'Coming soon'
}]
}];
this.callParent();
}
});
Can someone perhaps give me guidance on what I am doing wrong or is this a possible bug?
Thanks