[Laszlo-dev] For Review: Change 20071029-Philip-8. Summary: Make LzText.setMaxLength() consistent across runtimes

J Crowley jcrowley at laszlosystems.com
Mon Nov 5 04:00:05 PST 2007


Approved.

On Oct 29, 2007, at 8:51 PM, Philip Romanik wrote:

> Change 20071029-Philip-8 by Philip at Philip-DC on 2007-10-29 20:31:58  
> EDT
>    in /cygdrive/f/laszlo/svn/src/svn/openlaszlo/trunk
>    for http://svn.openlaszlo.org/openlaszlo/trunk
>
> Summary: Make LzText.setMaxLength() consistent across runtimes
>
> New Features:
>
> Bugs Fixed: LPP-4775
>
> Technical Reviewer: André Bargull
> QA Reviewer: jcrowley
> Doc Reviewer: (pending)
>
> Documentation:
>
> Release Notes:
>
> Details:
> http://www.openlaszlo.org/jira/browse/LPP-2208 fixed setMaxLength in  
> all but one case.
>
> LzText.lzs: If you call setMaxLength() after you set the text for  
> LzText or LzInputText, the string isn't clipped to the specified  
> length. I modified setMaxLength() to call setText to handle the  
> clipping (and sending the necessary events if the text is changed).
>
> lztest-text.lzx: Added a test to verify that the text is truncated  
> after setMaxLength is called.
>
>
> Tests:
> http://localhost:8080/trunk/test/lztest/lztest-text.lzx in swf/ 
> dhtml. No setMaxLength() errors should be reported.
>
> See LPP-4775 for an additional test. The unit test covers this case.
>
> I tested with FF and IE7 swf/dhtml.
>
> Files:
> M      test/lztest/lztest-text.lzx
> M      WEB-INF/lps/lfc/views/LzText.lzs
>
> Changeset: http://svn.openlaszlo.org/openlaszlo/patches/20071029-Philip-8.tar
>




More information about the Laszlo-dev mailing list