Details
-
Type:
Bug
-
Status: Resolved
-
Priority:
Critical
-
Resolution: Cannot Reproduce
-
Affects Version/s: None
-
Fix Version/s: Release 8.0.2
-
Component/s: iOS
-
Environment:
Appcelerator Studio, build: 4.8.1.201612050850
Tested with Appcelerator SDK >= 5.1.1
-
Story Points:1
-
Sprint:2019 Sprint 15, 2019 Sprint 16, 2019 Sprint 17, 2019 Sprint 18, 2019 Sprint 19, 2019 Sprint 20, 2019 Sprint 21, 2019 Sprint 22, 2019 Sprint 23, 2019 Sprint 24, 2019 Sprint 25
Description
selectionIndicator of picker is not visible.
I try to set selectionIndicator = true in the creation of the picker, after adding the PickerRow, and after adding the picker to the window. Same result.
If i force an error (try button "btn" of the test code), the selectionIndicator appear.
Test code (from http://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.Picker , adding the button)
|
Ti.UI.backgroundColor = 'white';
|
var win = Ti.UI.createWindow({
|
exitOnClose: true,
|
layout: 'vertical'
|
});
|
|
var picker = Ti.UI.createPicker({
|
top:50
|
});
|
|
var data = [];
|
data[0]=Ti.UI.createPickerRow({title:'Bananas'});
|
data[1]=Ti.UI.createPickerRow({title:'Strawberries'});
|
data[2]=Ti.UI.createPickerRow({title:'Mangos'});
|
data[3]=Ti.UI.createPickerRow({title:'Grapes'});
|
|
picker.add(data);
|
picker.selectionIndicator = true;
|
|
|
var btn = Ti.UI.createButton({
|
title : "TEST",
|
top : 10
|
});
|
btn.addEventListener("click", function(e){
|
Ti.API.info(test[0]);
|
});
|
|
|
win.add(picker,btn);
|
win.open();
|
|
// must be after picker has been displayed
|
picker.setSelectedRow(0, 2, false); // select Mangos
|
|