[TIMOB-10439] Blackberry: Slider value property is not working
GitHub Issue | n/a |
---|---|
Type | Sub-task |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-09-13T08:53:57.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Sprint 2012-18 BB, BB Preview 3 |
Components | BlackBerry |
Labels | kitchensink |
Reporter | Hayk Zakaryan |
Assignee | Josh Roesslein |
Created | 2012-08-14T04:45:40.000+0000 |
Updated | 2017-03-03T00:44:17.000+0000 |
Description
When creating a slider ( Titanium.UI.Slider ) and trying to get it's vale property - NAN is returned.
By docs it should return String - current value.
From the KS perspective (as noted by Hranush):
Position number values are "Undefined" during changing values in Slider
Step1: Open Controls -> Slider -> Change Min/Max
Step2: Change Slider value by your own
Actual result: the values are: "Min: undefined Pos: undefined Max: undefined"
Expected result: the values should be for example: "Min:0 Pos: 23 Max: 100"
slider.getValue() returns 'undefined'
Need to update the value on user interaction
Min and Max values are working as expected. But the "Pos" gets the corresponding values only when pressing buttons. For example after pressing the button -5/75/105, Result: Min: -5 Pos: 75 Max: 105 After changing the value: Result: Min -5 Pos: ... Max: 105 Only if Pos has Min or Max values, it shows the correct value like (Min: -5 Pos: -5 Max: 105)
In Slider -> Base the value is already showing the expected one instead of NAN. This part is fixed.
This is an issue with the width of the label in KS. The pos value is a float and makes for a long number, this is why it's replaced with the ellipsis (...) Assigning to Hayk to widen the pos label in KS
Closing ticket as Blackberry is no longer supported.