When I dock a button to right in the toolbar, it starts touching the upper border of the toolbar like this:

Here is my code:
Ext.define('MyApp.view.MyFormPanel', {
extend: 'Ext.form.Panel',
config: {
items: [
{
xtype: 'textfield',
label: 'Field'
},
{
xtype: 'textfield',
label: 'Field'
},
{
xtype: 'toolbar',
docked: 'bottom',
items: [
{
xtype: 'button',
ui: 'back',
text: 'Back'
},
{
xtype: 'button',
docked: 'right',
ui: 'forward',
text: 'Continue'
}
]
}
]
}
});
I used to have the same problem, but I solved it! You use, just like I did,
xtype: 'toolbar'to dock your buttons. What you have to use isxtype: 'titlebar'Now, if you have some buttons in your titlebar, just set the
alignproperty, like this:Check Sencha Docs for more info: Ext.TitleBar