View Full Version : Shrinking cycle buttons possible?

29 Apr 2013, 1:50 AM
I have 2 cycle buttons in a toolbar. They have no icons, so they start with an empty space in front of the selected item, which makes them much bigger (~20%) than needed.

Is it possible to remove this padding somehow?

29 Apr 2013, 5:59 AM
Here an image for clearification:


29 Apr 2013, 4:31 PM
There's not a config in cycle button to eliminate the padding reserved for the icon.

30 Apr 2013, 12:02 AM
If I use iconAlign with an empty string, the space vanishes.

This generated a cycle button, which looked like a normal one:

xtype: 'cycle'
showText: true
arrowCls: ''
iconAlign: ''
menu: {
items: [...]