hout a widget.
Hope this helps.
Sebastian
PS: BTW: getPreferredBoxWidth is not meant to be used by the user of
the API and is not mentioned in the API browser, too. With further
updates of qooxdoo the usage of such methods may break your code.
Am 28.02.2007 um 23:18 schrieb Peter Helfer:
> I a
I am using this function to calculate the width that a string will occupy
when displayed:
qx.Class.strDisplayWidth = function (str)
{
var lbl = new qx.ui.basic.Label(str);
var width = lbl.getPreferredBoxWidth();
lbl.disconnect();
lbl.dispose();
return width;
}
The Label never gets