-
15 Oct 2009 9:47 AM #1
[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
-
18 Oct 2009 11:39 PM #2Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- The Netherlands
- Posts
- 24,251
- Vote Rating
- 40
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.
-
19 Oct 2009 3:08 AM #3


Reply With Quote