PDA

View Full Version : Ext Core Ext.select getHeight



Mycoding
4 May 2011, 9:37 AM
I need to get height over Ext.select, but fails.
Please give me some advice how to do it easier.

At the moment I think to do it over this. But it is not cute way.


Ext.select('#'+Ext.dd.ddEL+' div.x-window-body').elements[0].attributes[0].nodeValue

dj
14 May 2011, 3:16 AM
How about


Ext.select('#'+Ext.dd.ddEL+' div.x-window-body').first().getHeight();


see: http://dev.sencha.com/deploy/ext-4.0.0/docs/api/Ext.CompositeElementLite.html (#first method)
and http://dev.sencha.com/deploy/ext-4.0.0/docs/api/Ext.core.Element.html (#getHeight method)