Results 1 to 3 of 3

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

  1. #1
    Sencha User
    Join Date
    Nov 2008
    Posts
    50
    Vote Rating
    0
      0  

    Default [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
    118
      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
      0  

    Default

    ok thanks and closed.

Posting Permissions

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