-
12 Sep 2011 1:49 AM #1
Wrap Button text
Wrap Button text
I am using Ext 4.0
Is there a way to wrap the button text with the specified width.
items:[{ xtype: 'button', text: 'A long text which doesn't fit with the specified width',width:30}
]
-
28 Mar 2012 9:39 AM #2
You have to set the white-space property to "normal" on the x-button-label class.
If your button has a class 'myButton', you can enter this in your css file:
Code:.myButton > .x-button-label { white-space: normal; }


Reply With Quote