[Laszlo-dev] For Review: Change 20090222-bargull-OwJ Summary: fix text height and lineheight for swf9
André Bargull
andre.bargull at udo.edu
Sat Feb 21 18:28:39 PST 2009
Change 20090222-bargull-OwJ by bargull at dell--p4--2-53 on 2009-02-22 01:49:43
in /home/Admin/src/svn/openlaszlo/trunk
for http://svn.openlaszlo.org/openlaszlo/trunk
Summary: fix text height and lineheight for swf9
New Features:
Bugs Fixed: LPP-7784 (Text height clipping in swf9 looks different than
swf8), LPP-7792 (SWF9: lineheight is wrong)
Technical Reviewer: ptw
QA Reviewer: henry
Doc Reviewer: (pending)
Documentation:
Release Notes:
Details:
LPP-7784
- setText: when sizeToHeight is true, just use textHeight (or lineheight
when text is empty) for new height
- getTextfieldHeight: copied swf8 logic to get the same results in both
runtimes
LPP-7792
- __setFormat: measure a sample text instead of the current text, because
1) an empty string isn't measured properly (LPP-7784 testcase)
2) lineheight is supposed to give the height of a line in the current
text-format, but the htmlText may contain additional format rules (like
" ") which will alter the results
Tests:
testcases from bugreport, lzpix and amazon in swf9
Files:
M WEB-INF/lps/lfc/kernel/swf9/LzTextSprite.as
Changeset:
http://svn.openlaszlo.org/openlaszlo/patches/20090222-bargull-OwJ.tar
More information about the Laszlo-dev
mailing list