Approved!
On 2/3/11 2:05 PM, P T Withington wrote:
Change ptw-20110203-WEz by [email protected] on 2011-02-03 16:48:07 EST
in /Users/ptw/OpenLaszlo/trunk-3
for http://svn.openlaszlo.org/openlaszlo/trunk
Summary: Avoid as3 textfield clipping artifacts
Bugs Fixed: LPP-9628 SWF10: An extra gap shows on the bottom of text in when
text.resize is set to false
Technical Reviewer: [email protected] (pending)
QA Reviewer: [email protected] (pending)
Details:
When setting the height of a text sprite, if the owner view has a
fixed height, make the text field big enough to hold any partial
line that would be clipped by the fixed height and then clip the
field with a mask that is correctly sized. This hides any
textfield artifacts (the gutter, the fact that multi-line fields
won't even display a a partially clipped line) under the clipping
mask and gives the desired appearance.
Also corrected bogus static `sizeToHeight`, replaced with (!
owner.hassetheight), which is dynamic.
Tests:
Test case from bug.
test/lztest/lztest-textheight.lzx?lzt=testboth&lzr=swf10
Files:
M WEB-INF/lps/lfc/kernel/swf9/LzTextSprite.as
Changeset: http://svn.openlaszlo.org/openlaszlo/patches/ptw-20110203-WEz.tar