You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by yi...@apache.org on 2020/11/24 15:15:31 UTC
[royale-asjs] 02/02: Make Spark Label not selectable
This is an automated email from the ASF dual-hosted git repository.
yishayw pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git
commit ce015c57113131e8f45b8beb5dfefe46b16a56e3
Author: Yishay Weiss <yi...@hotmail.com>
AuthorDate: Tue Nov 24 15:15:09 2020 +0000
Make Spark Label not selectable
---
.../SparkRoyale/src/main/royale/spark/components/Label.as | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/Label.as b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/Label.as
index c1a8058..3ca6762 100644
--- a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/Label.as
+++ b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/Label.as
@@ -48,6 +48,7 @@ import flashx.textLayout.formats.TLFTypographicCase; */
//import mx.core.IEmbeddedFontRegistry;
//import mx.core.IFlexModuleFactory;
import mx.core.IUIComponent;
+import org.apache.royale.html.beads.SelectableBead;
//import mx.core.Singleton;
import mx.core.mx_internal;
@@ -421,8 +422,15 @@ public class Label extends TextBase
if (GOOG::DEBUG)
trace("baselineShift not implemented");
}
-
-
+
+ override public function addedToParent():void
+ {
+ super.addedToParent();
+ var selectableBead:SelectableBead = new SelectableBead();
+ selectableBead.selectable = false;
+ addBead(selectableBead);
+ }
+
public function get digitWidth():String
{
return "";