Threaded View
-
17 Nov 2012 5:37 PM #1
xtype is set to 'element' for different elements, instead of the proper xtype.
xtype is set to 'element' for different elements, instead of the proper xtype.
I have a nested element. When I try to use the "up" method in the painted listener, I get null when querying for formpanel. When I use getParent() to climb the component chain, the formpanel (identified by its auto-generated id) has an xtype value of "element". I'm guessing this is why up is failing.
This was working in 2.0.0.
Code:Ext.application({ launch:function () { Ext.create('Ext.form.Panel', { fullscreen:true, items:[ { xtype:'fieldset', cls:'notes-form', items:[ { xtype:'textareafield', name:'notes', listeners:{ painted:function (c) { var parentHeight = c.up('formpanel').element.getHeight(true); c.element.down('textarea').setHeight(parentHeight - 7); } } } ] } ] }); } });
This issue duplicates another issue.


Reply With Quote