PDA

View Full Version : alignment challenge



n00bster
18 Jun 2009, 8:27 AM
I am trying to create a fieldset and have a radio group inside so the borders are tight to the group.

var fieldset3 = {
xtype : 'fieldset',
width : 500,
hideLabel : true,
border : true,
title : 'Trip is',
autoHeight : true,
items : [{
xtype: 'radiogroup',
labelWidth : 0,
items: [
{boxLabel: 'From My Location', name: 'rb-auto', inputValue: 1, checked: true},
{boxLabel: 'To My Location', name: 'rb-auto', inputValue: 2},
{boxLabel: 'Third Party', name: 'rb-auto', inputValue: 3}
]
}


if I set the width of the fieldset smaller then it starts to make the radio labels go 2 lines, but there is always a gap from the left border. how can I get rid of that gap ?

mjlecomte
18 Jun 2009, 7:48 PM
Suggest you post some small working code in code tags along with a screenshot.