You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by pu...@apache.org on 2020/12/16 14:06:18 UTC

[royale-asjs] branch develop updated: Update Label.as added truncateToFit

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

pushminakazi 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 0ce7339  Update Label.as added truncateToFit
0ce7339 is described below

commit 0ce7339098bb14b4db57146722c80c8906f2e403
Author: pashminakazi <42...@users.noreply.github.com>
AuthorDate: Wed Dec 16 19:06:08 2020 +0500

    Update Label.as added truncateToFit
---
 .../MXRoyale/src/main/royale/mx/controls/Label.as    | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/Label.as b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/Label.as
index ffa5330..985f906 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/Label.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/Label.as
@@ -789,6 +789,26 @@ public class Label extends UIComponent
 		return element;
 	}
 	
+    //----------------------------------
+    //  truncateToFit
+    //----------------------------------
+
+    /**
+     *  If this propery is <code>true</code>, and the Label control size is
+     *  smaller than its text, the text of the 
+     *  Label control is truncated using 
+     *  a localizable string, such as <code>"..."</code>.
+     *  If this property is <code>false</code>, text that does not fit is clipped.
+     * 
+     *  @default true
+     *  
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public var truncateToFit:Boolean = true;
+	
 
     //--------------------------------------------------------------------------
     //