ChiefDanGeorge
20 Apr 2012, 5:11 AM
I cannot get the text to line wrap in my buttons. My button definition is:
xtype: 'button',
width: 100,
height: 100,
text: "How Safe Is My Pesticide?",
margin: '0 20 0 20',
cls: 'pestPesticideSearchBtn',
listeners: {
scope: this,
click: function() {
this.mainTabPanel.setActiveTab('selectPesticidePage');
}
}
Where the css entry for pestPesticideSearchBtn is:
.pestPesticideSearchBtn .x-btn-inner {
white-space: normal;
}
The text will wrap if I change the text to: "<b>How Safe Is My Pesticide?</b>", however I want to move the
font weight into the css file as well. I'd appreciate any pointers!
Dan
xtype: 'button',
width: 100,
height: 100,
text: "How Safe Is My Pesticide?",
margin: '0 20 0 20',
cls: 'pestPesticideSearchBtn',
listeners: {
scope: this,
click: function() {
this.mainTabPanel.setActiveTab('selectPesticidePage');
}
}
Where the css entry for pestPesticideSearchBtn is:
.pestPesticideSearchBtn .x-btn-inner {
white-space: normal;
}
The text will wrap if I change the text to: "<b>How Safe Is My Pesticide?</b>", however I want to move the
font weight into the css file as well. I'd appreciate any pointers!
Dan