bweiler
9 Dec 2011, 4:50 PM
I'm using a spacer between horizontal panels in a container. I would like to change the color of the spacer to make it more subtle. Here's my code. I tried using the style property and setting the background-color, but that didn't work.
Thanks,
Bruce
BTW, I was amazed when this worked as expected. I had only used the spacer for buttons before.
Ext.define('MyApp.view.Main', {
extend: 'Ext.Container',
requires: [],
config: {
layout: 'hbox',
items: [
{
xtype: 'panel1view',
flex: 1,
},
{
xtype: 'spacer',
width: 3,
},
{
xtype: 'panel2view',
flex: 1,
}
]
}
});
Thanks,
Bruce
BTW, I was amazed when this worked as expected. I had only used the spacer for buttons before.
Ext.define('MyApp.view.Main', {
extend: 'Ext.Container',
requires: [],
config: {
layout: 'hbox',
items: [
{
xtype: 'panel1view',
flex: 1,
},
{
xtype: 'spacer',
width: 3,
},
{
xtype: 'panel2view',
flex: 1,
}
]
}
});