PDA

View Full Version : Button - badgeText covers button text



tt88
13 Sep 2013, 1:49 AM
Hi

When using badgeText it covers my button text. In the attached image you can see different attempts of trying to get my badgeText to correctly display. What I actually want is a button with ui:plain + iconCls + text. This works if I manually set the property text-align:left when debugging / modifying the output html. (see result in last image)

45795

I see there is no textAlign property on the button in Sencha-Touch, but it looks like there is one in Sencha. What properties on the Sencha-Touch button can I set to align the text left?

Thanks
ttw

fmoseley
19 Sep 2013, 8:48 AM
You should be able to add your styling to your badge by using badgeCls.
http://docs.sencha.com/touch/2.2.1/#!/api/Ext.Button-cfg-badgeCls