This is an automated email from the ASF dual-hosted git repository.

aharui pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git


The following commit(s) were added to refs/heads/develop by this push:
     new 9d3be7d  handle late title changes.  Should fix #761
9d3be7d is described below

commit 9d3be7d7789354ed9637549c7c3bf76a3a7c8bbc
Author: Alex Harui <[email protected]>
AuthorDate: Fri Mar 20 00:36:08 2020 -0700

    handle late title changes.  Should fix #761
---
 .../projects/SparkRoyale/src/main/royale/spark/components/Panel.as  | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git 
a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/Panel.as 
b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/Panel.as
index 7ccdcea..a64d1b5 100644
--- a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/Panel.as
+++ b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/Panel.as
@@ -29,9 +29,9 @@ import mx.core.mx_internal;
 import org.apache.royale.core.IBeadView;
 import org.apache.royale.core.IChild;
 import org.apache.royale.core.IParent;
-import org.apache.royale.events.Event;
+import org.apache.royale.events.Event;
 import org.apache.royale.events.ValueEvent;
-
+
 //import mx.utils.BitFlagUtil;
 
 //import spark.core.IDisplayText;
@@ -528,6 +528,8 @@ public class Panel extends SkinnableContainer
     public function set title(value:String):void
     {
         (model as PanelModel).title = value;
+               if (titleDisplay)
+                       titleDisplay.text = value;
     }
     
     
//--------------------------------------------------------------------------

Reply via email to