If you look at the image below, I have an segment button which is placed on top of a FieldSet. I want the segmented button to cover the full space available in the FieldSet. I have used the following layout for the SegmentedButton. Help me to fix this.
var btn = new Ext.SegmentedButton({
layout: {
type : hbox ,
pack : center ,
align: stretchmax
},
allowMultiple: false,
items: [
{
text: Switch 1 ,
widht: 100% ,
labelWidth : 100% ,
modal: true,
pressed: true
},
{
text : Switch 2 ,
widht: 100% ,
labelWidth : 100% ,
modal: true
}
]
});