PDA

View Full Version : positioning a panel after top toolbar



Plkilroy
16 Jun 2011, 4:49 AM
Hi im having trouble positioning a panel after top toolbar. I want to have the panel directly under the toolbar, Ive run out of ideas, here is my page layout, thanks P

mobi3g.views.Home = Ext.extend(Ext.Panel, {

initComponent: function () {

var toolbarBase = {
xtype: 'toolbar'
};

toolbarBase.items = [{ xtype: 'spacer' }, {
xtype: "container",
width: 280,
dock: 'right',
html: '<img src="http://www.bla.com/images/header-1.png" />'

}];

this.dockedItems = toolbarBase;
mobi3g.views.Home.superclass.initComponent.call(this);

}

});

Ext.reg('home', mobi3g.views.Home);