[Laszlo-dev] anybody recall why we changed how LzTextSprite.getTextWidth works from 4.2 ?

Henry Minsky henry.minsky at gmail.com
Thu Apr 1 11:08:46 PDT 2010


We used to measure text width in LzTextSprite by looking at the Flash
'TextField.textWidth' property (and adding
4 pixels of padding because it clipped otherwise).

At some point that method was changed to look at the TextField._width
instead, which gives different values (slightly larger ones).

Anyone remember what the thinking there was? I'm inclined to revert that, so
that we're compatible with the
4.2 text width in swf8.



r13517  by ptw has the last assignment according to svn blame

" Fixed getTextWidth, getTextHeight, getTextfieldHeight,
    to obey kernel API contract."



-- 
Henry Minsky
Software Architect
hminsky at laszlosystems.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.openlaszlo.org/pipermail/laszlo-dev/attachments/20100401/2ad53ea8/attachment.html


More information about the Laszlo-dev mailing list