[AC-5326] [iOS - Critical] Set slider's value doesn't work with run-on-main-thread set to false
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Resolved |
Resolution | Duplicate |
Resolution Date | 2017-10-30T13:24:07.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | n/a |
Labels | n/a |
Reporter | nicolomonili |
Assignee | Shak Hossain |
Created | 2017-10-30T11:50:38.000+0000 |
Updated | 2017-10-30T13:41:23.000+0000 |
Description
*TEST CODE*
var win = Ti.UI.createWindow({
backgroundColor : "white"
});
var button = Ti.UI.createButton({
title : "Set value",
top : 50
});
var slider = Ti.UI.createSlider({
width : Ti.UI.FILL,
left : 20,
right : 20,
top : 100,
value : 0,
min : 0,
max : 100
});
button.addEventListener("click", function(e){
slider.setValue(Math.floor(Math.random() * 100) + 1);
});
win.add(button,slider);
win.open();
*EXPECTED RESULT:*
The button's event should change the slider's value
*ACTUAL RESULT*
The button's event change the slider's value *only* when the property *run-on-main-thread* is set to *true*. This obviously is a serious problem considering that this option set to true creates thousands of problems.
*INFO*
With SDK *6.1.2.GA* there are no problems. With SDK *6.2.0*,*6.2.1* and *6.2.2.GA* there is this problem.
Attachments
File | Date | Size |
---|---|---|
Simulator Screen Shot - iPhone 5s - 2017-10-30 at 12.44.57.png | 2017-10-30T11:45:06.000+0000 | 24924 |
Fixed in 6.3.0+ as part of TIMOB-25361.
Ohh sorry for the double ticket. There is already a release date for the 6.3.0.GA ? I have tested [this](http://builds.appcelerator.com/mobile/6_3_X/mobilesdk-6.3.0.v20171027170556-osx.zip) version and it works!