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 84de90c NumericStepper wasn't reporting value correctly. Should fix
#693
84de90c is described below
commit 84de90c2aa1125ccd54995ed4240e3f744ec7a5a
Author: Alex Harui <[email protected]>
AuthorDate: Thu Jan 23 15:19:15 2020 -0800
NumericStepper wasn't reporting value correctly. Should fix #693
---
.../src/main/royale/spark/components/supportClasses/Range.as | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
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 c538df8..24eaade 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
@@ -207,7 +207,7 @@ public class Range extends SkinnableComponent
*/
public function get stepSize():Number
{
- return _stepSize;
+ return (model as RangeModel).stepSize;
}
public function set stepSize(value:Number):void
@@ -218,6 +218,8 @@ public class Range extends SkinnableComponent
_stepSize = value;
stepSizeChanged = true;
+ (model as RangeModel).stepSize = value;
+
invalidateProperties();
}
@@ -252,7 +254,7 @@ public class Range extends SkinnableComponent
*/
public function get value():Number
{
- return (valueChanged) ? _changedValue : _value;
+ return (model as RangeModel).value;
}
@@ -268,9 +270,7 @@ public class Range extends SkinnableComponent
{
if (newValue == value)
return;
- _changedValue = newValue;
- valueChanged = true;
- invalidateProperties();
+ (model as RangeModel).value = newValue;
}
//---------------------------------