PDA

View Full Version : Toolbar width in FormPanel (bbar)



jsknight
10 Aug 2009, 1:31 PM
Hello,

the code:


Ext.onReady(function(){

var movie_form = new Ext.form.FormPanel({

renderTo: document.body,
frame: true,
id: 't-layout-south',
title: 'Filters',
width: 400,
style: 'margin:10 0;',
bbar: {
width: '100%',
items: [
'->'
,{
xtype: 'tbbutton',
text: 'Remove Filters',
width: 80
},{
xtype: 'tbspacer',
width: 10
},{
xtype: 'tbbutton',
text: 'Apply Filters',
width: 80
}]
},
items: [{
xtype: 'panel',
hideLabel: true,
layout: 'column',
defaults: {
xtype: 'container',
layout: 'form'
},
items :[{
width: 140,
labelWidth: 65,
items: {
xtype: 'textfield',
fieldLabel: 'Partner ID',
width: 60
}
}]
}]
})
});
What was missed that toolbar has space in the begging and at the end?

thanks