Shouldn't "qx.bom.Label.getTextSize()" give you a hint?
I've tried this a long time ago myself and found that it did not give me the
results I've expected, but as said: It was a long time ago...
<code>
var dimensions = qx.bom.Label.getTextSize("8 -- Atlas Copco -- Reuniones");
// => {width:193, height:20}
qx.bom.Label.getTextSize("4001892696 -- Modultec -- Averia cambiar purga EWD-50
del calderin");
// => {width:459, height:20}
</code>
...I think something like this should be the direction to go
<code>
var widths = datos.map(function (r) {
return qx.bom.Label.getTextSize(r[0]).width;
});
var maxLength = qx.lang.Array.max(widths);
</code>
/Peter
On 5/13/2013 11:32 PM Jesús wrote:
> Thanks for all
>
> I work..... wit5h your example.
>
> But the question is that this data is from a RPC server and there are very
> types, and i need expand de "ote" column to max size automatic.....
>
> I am working with your example to see if I clear.
>
> Thanks again and best regards
------------------------------------------------------------------------------
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel