royale-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From alinak...@apache.org
Subject [royale-asjs] branch feature/MXRoyale updated: Update Rect.as
Date Fri, 01 Jun 2018 04:22:44 GMT
This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/feature/MXRoyale by this push:
     new a8ade4d  Update Rect.as
a8ade4d is described below

commit a8ade4d961648374046e9b23df57d2b2fbb3f115
Author: alinakazi <ALINAKAZI1990@GMAIL.COM>
AuthorDate: Fri Jun 1 09:22:41 2018 +0500

    Update Rect.as
---
 .../src/main/royale/spark/primitives/Rect.as       | 52 +++++++++++++++++++++-
 1 file changed, 51 insertions(+), 1 deletion(-)

diff --git a/frameworks/projects/SparkRoyale/src/main/royale/spark/primitives/Rect.as b/frameworks/projects/SparkRoyale/src/main/royale/spark/primitives/Rect.as
index 98b0344..57a57d0 100644
--- a/frameworks/projects/SparkRoyale/src/main/royale/spark/primitives/Rect.as
+++ b/frameworks/projects/SparkRoyale/src/main/royale/spark/primitives/Rect.as
@@ -840,7 +840,57 @@ public class Rect  extends EventDispatcher
         visibleChanged = true;
         invalidateProperties(); */
     }
-	//----------------------------------
+    //----------------------------------
+    //  height copied from GraphicElement
+    //----------------------------------
+    
+    /**
+     *  @private
+     *  Storage for the height property.
+     */
+    /* mx_internal */ private var _height:Number = 0;
+
+    [Bindable("propertyChange")]
+    [Inspectable(category="General")]
+    [PercentProxy("percentHeight")]
+
+    /**
+     *  The height of the graphic element.
+     *
+     *  @default 0
+     *  
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Royale 0.9.4
+     *  @royalesuppresspublicvarwarning
+	 */
+    public function get height():Number
+    {
+        return _height;
+    }
+
+    /**
+     *  @private
+     */
+    
+    public function set height(value:Number):void
+    {
+       // explicitHeight = value;
+
+        if (_height == value)
+            return;
+
+        var oldValue:Number = _height;
+        _height = value;
+       // dispatchPropertyChangeEvent("height", oldValue, value);
+
+        // Invalidate the display list, since we're changing the actual height
+        // and we're not going to correctly detect whether the layout sets
+        // new actual height different from our previous value.
+       // invalidateDisplayList();
+    }
+    //----------------------------------
     //  width copied from GraphicElement
     //----------------------------------
 

-- 
To stop receiving notification emails like this one, please contact
alinakazi@apache.org.

Mime
View raw message