aharui closed pull request #326: Emulated classes added.
URL: https://github.com/apache/royale-asjs/pull/326
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git 
a/frameworks/projects/SparkRoyale/src/main/resources/spark-royale-manifest.xml 
b/frameworks/projects/SparkRoyale/src/main/resources/spark-royale-manifest.xml
index 296b22791..2e6a7fd56 100644
--- 
a/frameworks/projects/SparkRoyale/src/main/resources/spark-royale-manifest.xml
+++ 
b/frameworks/projects/SparkRoyale/src/main/resources/spark-royale-manifest.xml
@@ -101,5 +101,7 @@
        <component id="GridColumn" 
class="spark.components.gridClasses.GridColumn"/>
        <component id="ArrayList" class="mx.collections.ArrayList" 
lookupOnly="true"/>
        <component id="HTTPService" class="mx.rpc.http.mxml.HTTPService" 
lookupOnly="true"/>
+       <component id="GridItemRenderer" 
class="spark.components.gridClasses.GridItemRenderer"/>
+       <component id="Parallel" class="mx.effects.Parallel" lookupOnly="true"/>
     
 </componentPackage>
diff --git 
a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/TextInput.as 
b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/TextInput.as
index 142a479da..46985d265 100644
--- 
a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/TextInput.as
+++ 
b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/TextInput.as
@@ -369,18 +369,18 @@ public class TextInput extends SkinnableTextBase
      *  @playerversion AIR 1.5
      *  @productversion Royale 0.9.4
      */
-    /* public function get widthInChars():Number
+    public function get widthInChars():Number
     {
-        return getWidthInChars();
-    } */
+        return 0; //getWidthInChars();
+    }
 
     /**
      *  @private
      */
-    /* public function set widthInChars(value:Number):void
+    public function set widthInChars(value:Number):void
     {
-        setWidthInChars(value);
-    } */
+        // setWidthInChars(value);
+    }
     
     
//--------------------------------------------------------------------------
     //
diff --git 
a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/gridClasses/GridItemRenderer.as
 
b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/gridClasses/GridItemRenderer.as
index e67322b37..54d0c7c9c 100644
--- 
a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/gridClasses/GridItemRenderer.as
+++ 
b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/gridClasses/GridItemRenderer.as
@@ -234,9 +234,9 @@ package spark.components.gridClasses
                                renderer.getLayoutBoundsWidth(),
                                renderer.getLayoutBoundsHeight());
                        
-                       const scrollR:Rectangle = renderer.grid.scrollRect;
+                       /*const scrollR:Rectangle = renderer.grid.scrollRect;
                        if (scrollR)
-                               rendererR = rendererR.intersection(scrollR);  
// exposed renderer b
+                               rendererR = rendererR.intersection(scrollR);  
// exposed renderer b*/
                        
                        if ((rendererR.height == 0) || (rendererR.width == 0))
                                return;
diff --git 
a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/gridClasses/IGridItemRenderer.as
 
b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/gridClasses/IGridItemRenderer.as
index 0676801c3..c7c4f1ea4 100644
--- 
a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/gridClasses/IGridItemRenderer.as
+++ 
b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/gridClasses/IGridItemRenderer.as
@@ -192,8 +192,8 @@ public interface IGridItemRenderer extends IDataRenderer, 
IVisualElement
      *  @playerversion AIR 2.5
      *  @productversion Flex 4.5 
      */
-    // function get column():GridColumn;
-    // function set column(value:GridColumn):void;
+    function get column():GridColumn;
+    function set column(value:GridColumn):void;
     
     /**
      *  The column index for this item renderer's cell.  
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 ca80e141f..d795d1e5d 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
@@ -1999,16 +1999,16 @@ public class SkinnableTextBase extends 
SkinnableComponent
      *  @playerversion AIR 1.5
      *  @productversion Royale 0.9.4
      */
-    /* public function appendText(text:String):void
-    {
+    public function appendText(text:String):void
+    {/*
         if (!textDisplay)
             return;
 
         textDisplay.appendText(text);
         
         // This changes text so generate an UPDATE_COMPLETE event.
-        invalidateProperties();
-    } */
+        invalidateProperties();*/
+    } 
     
     /**
      *  @copy spark.core.IEditableText#selectRange()
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 57a57d0cb..036f4bcc4 100644
--- a/frameworks/projects/SparkRoyale/src/main/royale/spark/primitives/Rect.as
+++ b/frameworks/projects/SparkRoyale/src/main/royale/spark/primitives/Rect.as
@@ -899,10 +899,10 @@ public class Rect  extends EventDispatcher
      *  Storage for the width property.
      */
      /* mx_internal */ private var _width:Number = 0;
-
-    [Bindable("propertyChange")]
-    [Inspectable(category="General")]
-    [PercentProxy("percentWidth")]
+        
+        [Bindable("propertyChange")]
+        [Inspectable(category="General")]
+        [PercentProxy("percentWidth")]
 
     /**
      *  The width of the graphic element.
@@ -1275,6 +1275,48 @@ public class Rect  extends EventDispatcher
         dispatchPropertyChangeEvent("fill", oldValue, _fill);    
         invalidateDisplayList(); */
     }
+       
+       //----------------------------------
+       //  percentWidth
+       //----------------------------------
+       
+       /**
+        *  @private
+        *  Storage for the percentWidth property.
+        */
+       private var _percentWidth:Number;
+       
+       [Inspectable(category="General")]
+       
+       /**
+        *  @copy mx.core.UIComponent#percentWidth
+        *  
+        *  @langversion 3.0
+        *  @playerversion Flash 10
+        *  @playerversion AIR 1.5
+        *  @productversion Flex 4
+        */
+       public function get percentWidth():Number
+       {
+               return _percentWidth;
+       }
+       
+       /**
+        *  @private
+        */
+       public function set percentWidth(value:Number):void
+       {
+               if (_percentWidth == value)
+                       return;
+               
+               /*if (!isNaN(value))
+                       explicitWidth = NaN;*/
+               
+               _percentWidth = value;
+               
+               // invalidateParentSizeAndDisplayList();
+       }
+
 }
 
 }


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to