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 24753ff  ranges needed to be passed to model.  Should fix #675
24753ff is described below

commit 24753ff0ade46ed36d14f62c8c2915b09ca6166f
Author: Alex Harui <[email protected]>
AuthorDate: Mon Jan 13 21:58:40 2020 -0800

    ranges needed to be passed to model.  Should fix #675
---
 .../src/main/royale/spark/components/supportClasses/Range.as        | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git 
a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/supportClasses/Range.as
 
b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/supportClasses/Range.as
index 669bd4c..c538df8 100644
--- 
a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/supportClasses/Range.as
+++ 
b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/supportClasses/Range.as
@@ -22,6 +22,8 @@ package spark.components.supportClasses
 
 import mx.events.FlexEvent;
 
+import org.apache.royale.html.beads.models.RangeModel;
+
 /**
  *  The Range class holds a value and an allowed range for that 
  *  value, defined by <code>minimum</code> and <code>maximum</code> 
properties. 
@@ -129,6 +131,8 @@ public class Range extends SkinnableComponent
         _maximum = value;
         maxChanged = true;
         
+        (model as RangeModel).maximum = value;
+        
         invalidateProperties();
     }
     
@@ -170,6 +174,8 @@ public class Range extends SkinnableComponent
         _minimum = value;
         minChanged = true;
         
+        (model as RangeModel).minimum = value;
+
         invalidateProperties();
     }
     

Reply via email to