Results 1 to 2 of 2

Thread: Button text position error

  1. #1
    Sencha User
    Join Date
    Jul 2007
    Posts
    30
    Vote Rating
    1
      0  

    Default Answered: Button text position error

    Hi There,

    1.png

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

    Code:
    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.

    Code:
    <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

  2. Can you simply create a CSS rule and make the changes there instead of trying to make changes after it has rendered?

    Scott.

  3. #2
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    9,409
    Answers
    716
    Vote Rating
    504
      0  

    Default

    Can you simply create a CSS rule and make the changes there instead of trying to make changes after it has rendered?

    Scott.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •