PDA

View Full Version : How do you set the label width?



profunctional
26 Oct 2010, 10:59 AM
If your label runs too long, it goes off the the gray background.

question 1. how do you change the label's background from gray to white?

question 2. how do you change the width of the label's container?

evant
26 Oct 2010, 3:46 PM
1) CSS, or you could access the labelEl property on the field and modify the css.
2) Ditto



field.on('afterrender', function(){
field.labelEl.setStyle({
width: '200px',
background-color: '#000'
});
});