PDA

View Full Version : Problem with styling boxLabel of a checkbox



diptarag
28 Aug 2012, 4:51 AM
I am a newbie to ExtJS, I have a Checkbox in 'fbar' of a 'fit' layout panel, fbar has one checkbox (with long text as boxLabel) 3 buttons in a single line, my problem is the checkbox boxlabel test is getting overlapped with leftmost button, how can I wrap the boxLabel text? With fit layout I can not use fieldLabel thus labelStyle can not be used, labelWidth also I can not use

sword-it
3 Sep 2012, 2:30 AM
HI!
i guess you may use xtype label in your fbar with your buttons.
also, you may style it according to your needs!

sample:-


{
xtype: 'label',
text: 'My Awesome Field',
margin: '0 0 0 10'
}



Check this:-
http://docs.sencha.com/ext-js/3-4/#!/api/Ext.form.Label