[Laszlo-dev] text width and height computations at runtime
Henry Minsky
hminsky at laszlosystems.com
Sat Dec 6 08:34:16 PST 2008
I'm looking at LPP-7425, regarding setting an LzText sprite's height,
and it's clear from the number of TODO's in the code that
we have to simplify the behavior of text sizing.
There is a "resize" flag which says if text resizes it's width when
it's contents change, and there is a "sizeToHeight" flag and a
"hassetheight" flag. I no longer understand what the behavior is
supposed to be.
I think a lot of the weird behaviors comes from restrictions in the
swf5 runtime, when text could not be dynamically resized, or at least
not easily, and a number of things had to happen
at compile time. We can now measure and size text completely
dynamically in all the runtimes, surely we can clean this up, in a
mostly backward compatible way, before it gets any worse! I think it
would be worth it even if we need to break a some amount of back
compatibility if necessary to fix this going forwards...
--
Henry Minsky
Software Architect
hminsky at laszlosystems.com
More information about the Laszlo-dev
mailing list