1. #1
    Sencha User
    Join Date
    Apr 2011
    Posts
    8
    Vote Rating
    0
    PriyaL is on a distinguished road

      0  

    Default 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}
    ]

  2. #2
    Sencha User
    Join Date
    Apr 2011
    Posts
    40
    Vote Rating
    2
    clubby is on a distinguished road

      0  

    Default


    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;
    }

Thread Participants: 1