1. #1
    Sencha User
    Join Date
    Nov 2008
    Posts
    50
    Vote Rating
    0
    dtondo is on a distinguished road

      0  

    Default [CLOSED][2.x] Ext.Button setSize is undefined

    [CLOSED][2.x] Ext.Button setSize is undefined


    The Ext.Button does not contain the setSize Method. But in documentation i can find it.


    var helpButton = new Ext.Button({
    text: '???'
    });
    alert(helpButton.setSize)


    after add it on a panel, for example i can copy the panel method:
    panelCreatedBefore.add(helpButton)

    helpButton.setSize = helpButton.ownerCt.setSize;


    Thanks

  2. #2
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    83
    Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of

      0  

    Default


    The API docs are wrong. In Ext 2.x Ext.Button is an Ext.Component and not an Ext.BoxComponent, so it doesn't have a setSize method.

    ps. In Ext 3.x Ext.Button is an Ext.BoxComponent.

  3. #3
    Sencha User
    Join Date
    Nov 2008
    Posts
    50
    Vote Rating
    0
    dtondo is on a distinguished road

      0  

    Default


    ok thanks and closed.

Thread Participants: 1