Approved.

Change 20070828-maxcarlson-h by [EMAIL PROTECTED] on 2007-08-28
12:11:18 PDT
     in /Users/maxcarlson/openlaszlo/wafflecone
     for http://svn.openlaszlo.org/openlaszlo/branches/wafflecone

Summary: Fix text measurement in swf

New Features:

Bugs Fixed: LPP-4571 - Text component not sized correctly when
fontsize configured via a constraint

Technical Reviewer: promanik
QA Reviewer: jcrowley
Doc Reviewer: (pending)

Documentation:

Release Notes:

Details: LzTextSprite.as - Clean out unneeded defaultattrs,
DeclareEvent calls and other cruft.  Set textclip.autoSize back to
this.resize in getTextfieldHeight().

LzUtils.lzs - Simplify dectohex(), make padding argument optional.

LzText.lzs - Add onhscroll and onmaxhscroll events which may be sent
by swf text sprites.


Tests: ant lztest, http://localhost:8080/wafflecone/test/lztest/
lztest-textheight.lzx?debug=true and the following test all pass in
swf and dhtml:

<canvas>
     <text>Hello Laszlo! This is a really long string that should
have the correct width in flash.</text>
</canvas>


Files:
M      WEB-INF/lps/lfc/kernel/swf/LzTextSprite.as
M      WEB-INF/lps/lfc/kernel/LzUtils.lzs
M      WEB-INF/lps/lfc/views/LzText.lzs

Changeset: http://svn.openlaszlo.org/openlaszlo/patches/20070828-
maxcarlson-h.tar


Reply via email to