[Laszlo-checkins] r12042 - openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf9

bargull@openlaszlo.org bargull at openlaszlo.org
Wed Dec 10 12:35:51 PST 2008


Author: bargull
Date: 2008-12-10 12:35:49 -0800 (Wed, 10 Dec 2008)
New Revision: 12042

Modified:
   openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf9/LzTextSprite.as
Log:
Change 20081209-bargull-TBk by bargull at dell--p4--2-53 on 2008-12-09 19:44:00
    in /home/Admin/src/svn/openlaszlo/trunk
    for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: workaround textformat bug

New Features:

Bugs Fixed: LPP-7333

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

Documentation:

Release Notes:

Details:
Flash player bug FP-77 ("http://bugs.adobe.com/jira/browse/FP-77") requires us to reset the textformat when the "htmlText"-property is changed. 
    

Tests:
see testcases at bugreport



Modified: openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf9/LzTextSprite.as
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf9/LzTextSprite.as	2008-12-10 18:54:47 UTC (rev 12041)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf9/LzTextSprite.as	2008-12-10 20:35:49 UTC (rev 12042)
@@ -305,7 +305,11 @@
             }
 
             this.text = t;
+            var df:TextFormat = this.textfield.defaultTextFormat;
             this.textfield.htmlText = t;
+            // reset textformat to workaround flash player bug (FP-77)
+            this.textfield.setTextFormat(df);
+            this.textfield.defaultTextFormat = df;
         
             if (this.resize && (this.multiline == false)) {
                 // single line resizable fields adjust their width to match the text



More information about the Laszlo-checkins mailing list