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/01/09 18:25:12 UTC
[royale-asjs] branch develop updated: handle contentBackgroundColor
in Spark TextInput
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 49512ca handle contentBackgroundColor in Spark TextInput
49512ca is described below
commit 49512caedb8e6cc64bdf804913745b78a00ec42e
Author: Alex Harui <ah...@apache.org>
AuthorDate: Thu Jan 9 10:24:48 2020 -0800
handle contentBackgroundColor in Spark TextInput
---
.../royale/spark/components/supportClasses/SkinnableTextBase.as | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/supportClasses/SkinnableTextBase.as b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/supportClasses/SkinnableTextBase.as
index 53ace21..f442b8e 100644
--- a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/supportClasses/SkinnableTextBase.as
+++ b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/supportClasses/SkinnableTextBase.as
@@ -2874,6 +2874,13 @@ public class SkinnableTextBase extends SkinnableComponent
// Redispatch the event that came from the RichEditableText.
dispatchEvent(event);
} */
+
+ override public function setStyle(styleName:String, value:*):void
+ {
+ if (styleName == "contentBackgroundColor")
+ styleName = "backgroundColor";
+ super.setStyle(styleName, value);
+ }
}
}