PDA

View Full Version : Two lines text in a button



liquidsnake
14 Feb 2010, 5:36 AM
I have a button and I want the text to be in two lines.
The size of the button is large.

new Ext.Button({text:'Two<br/>lines'})

In IE 6, it displays correctly, in two lines.
However, in firefox and chrome, only 'Two' is displayed, displayed at the center.
I would like to know, how to make in work in firefox and chrome ?

[p.s. Is it a bug ?
in the api,
"The button text to be used as innerHTML (html tags are accepted)" ]

Eugen_
14 Feb 2010, 6:17 AM
The size of the button is large.

Where is it set?



new Ext.Button({text:'Two<br/>lines', scale: 'large'})

liquidsnake
14 Feb 2010, 7:27 AM
Where is it set?



new Ext.Button({text:'Two<br/>lines', scale: 'large'})

thank you very much !

I didn't know it needed to be scale large,
I made the size large by setting width and height only.

Ha Ha, thx so much~

Eugen_
14 Feb 2010, 7:40 AM
thank you very much !
You are welcome :)