Mar 05, 2012, 10:17 AM
[CLOSED] Measure String Length
Hi,
I'm trying to obtain string measure in pixels from a combo, and I find this function:
No se puede obtener valor de la propiedad 'fontSize': el objeto es nulo o está sin definir (Can not get value of property 'fontSize': the object is null or undefined)
It seems the problem is in Ext.fly(combo).getStyles function that is called internally
There is any workaround for this function or I'm doing something wrong?
I'm trying to obtain string measure in pixels from a combo, and I find this function:
Ext.util.TextMetrics.measure(combo, 'Text to measure length')
But it throw an exception:No se puede obtener valor de la propiedad 'fontSize': el objeto es nulo o está sin definir (Can not get value of property 'fontSize': the object is null or undefined)
It seems the problem is in Ext.fly(combo).getStyles function that is called internally
There is any workaround for this function or I'm doing something wrong?
Last edited by Daniil; Mar 05, 2012 at 11:59 AM.
Reason: [CLOSED]