Change 20071031-Philip-4 by [EMAIL PROTECTED] on 2007-10-31 14:32:52 EDT
    in /cygdrive/f/laszlo/svn/src/svn/openlaszlo/trunk
for <http://svn.openlaszlo.org/openlaszlo/trunk>http://svn.openlaszlo.org/openlaszlo/trunk

Summary: Fix reference to DEFAULT_SIZE in LzTextSprite.as

New Features:

Bugs Fixed: LPP-4952

Technical Reviewer: max
QA Reviewer: (pending)
Doc Reviewer: (pending)

Documentation:

Release Notes:

Details:
The reference for DEFAULT_SIZE should be this.DEFAULT_SIZE and not LzText.DEFAULT_SIZE.

Tests:
See test below. The message is NaN for an unpatched system. A valid number is displayed once patched.

<canvas>
  <font name="Helvetica" src="helmetr.ttf" />
  <simplelayout axis="y" spacing="10"/>
  <text name="message"/>

  <text font="Helvetica" multiline="true">
    Text using Helvetica
    <handler name="oninit">
      message.format("textheight = %g", this.sprite.lineheight);
    </handler>
  </text>
</canvas>


Files:
M      WEB-INF/lps/lfc/kernel/swf/LzTextSprite.as

Changeset: <http://svn.openlaszlo.org/openlaszlo/patches/20071031-Philip-4.tar>http://svn.openlaszlo.org/openlaszlo/patches/20071031-Philip-4.tar

Reply via email to