PDA

View Full Version : Button text position error



disller
11 Jun 2012, 5:53 PM
Hi There,

36131

As you can see from screen shot, the text position is error.
So I want to adjust it in the afterrender event of button




listeners : {
'afterrender':function(button){
button.btnInnerEl.dom.style.padding='63px 1px 1px 1px';
}
}



but the result is only padding-top can not be written into the html.




<span style="padding-right: 1px; padding-bottom: 1px; padding-left: 1px; width: 69px; height: 72px;
line-height: 8px;" class="x-btn-inner" id="abc-btnInnerEl">Column Chart</span>


anyone who knows why? or how to make it?

Thanks

scottmartin
15 Jun 2012, 6:46 PM
Can you simply create a CSS rule and make the changes there instead of trying to make changes after it has rendered?

Scott.