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 garbage-collected. Is there some additional function I
need to call to make it go away? Or is there a better way to compute the
screen width of a string?

(I'm using qooxdoo 0.6.1)

Thanks,

Peter
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to