You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by ah...@apache.org on 2020/04/15 07:15:48 UTC
[royale-asjs] branch develop updated: support late label changes in
FormItem. Should fix #797
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 f3be6ef support late label changes in FormItem. Should fix #797
f3be6ef is described below
commit f3be6ef9173980032e06df827a83dfa3ddb5bbcd
Author: Alex Harui <ah...@apache.org>
AuthorDate: Wed Apr 15 00:15:23 2020 -0700
support late label changes in FormItem. Should fix #797
---
frameworks/projects/MXRoyale/src/main/royale/mx/containers/FormItem.as | 3 +++
1 file changed, 3 insertions(+)
diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/containers/FormItem.as b/frameworks/projects/MXRoyale/src/main/royale/mx/containers/FormItem.as
index dd6933c..fee2fd0 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/containers/FormItem.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/containers/FormItem.as
@@ -339,6 +339,8 @@ public class FormItem extends Container
*/
override public function set label(value:String):void
{
+ if (_label == value) return;
+
_label = value;
labelChanged = true;
@@ -352,6 +354,7 @@ public class FormItem extends Container
{
Form(parent).invalidateLabelWidth();
commitProperties();
+ Form(parent).dispatchEvent(new Event("layoutNeeded"));
}
dispatchEvent(new Event("labelChanged"));