one cannot set the different borders seperately in panels/grids and
docked items don't have a bottom border in extjs, but we want to remove
all borders except the ones between the toolbar and the grids/content
below that.
to achieve that, set a custom 'border-bottom-width' with '!important'
(extjs has a rule with !important as well) for the toolbar, and
everywhere else remove the border.
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
{
xtype: 'toolbar',
dock: 'top',
+ style: {
+ // docked items have set the bottom with to 0px with '! important'
+ // but we still want one here, so we can remove the borders of the grids
+ 'border-bottom-width': '1px ! important',
+ },
items: [
{
xtype: 'button',
},
{
xtype: 'pmgSpamInfoGrid',
- border: false,
reference: 'spaminfo',
+ border: false,
},
{
xtype: 'pmgMailInfo',
hidden: true,
reference: 'mailinfo',
+ border: false,
},
],
},
{
xtype: 'toolbar',
dock: 'top',
+ style: {
+ // docked items have set the bottom with to 0px with '! important'
+ // but we still want one here, so we can remove the borders of the grids
+ 'border-bottom-width': '1px ! important',
+ },
items: [
{
xtype: 'button',
xtype: 'pmgMailInfo',
hidden: true,
reference: 'mailinfo',
+ border: false,
},
],
},