Titanium JIRA Archive
Appcelerator Community (AC)

[AC-5326] [iOS - Critical] Set slider's value doesn't work with run-on-main-thread set to false

GitHub Issuen/a
TypeBug
Priorityn/a
StatusResolved
ResolutionDuplicate
Resolution Date2017-10-30T13:24:07.000+0000
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsn/a
Reporternicolomonili
AssigneeShak Hossain
Created2017-10-30T11:50:38.000+0000
Updated2017-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

FileDateSize
Simulator Screen Shot - iPhone 5s - 2017-10-30 at 12.44.57.png2017-10-30T11:45:06.000+000024924

Comments

  1. Hans Knöchel 2017-10-30

    Fixed in 6.3.0+ as part of TIMOB-25361.
  2. nicolomonili 2017-10-30

    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!

JSON Source