The user can scroll down and up through the picker and the labels or views, always need to be there
When the user scrolls quickly some views or labels of the column picker just disappear
// this sets the background color of the master UIView (when there are no windows/tab groups on it)
Titanium.UI.setBackgroundColor('#000');
var win1 = Titanium.UI.createWindow({
title:'Tab 1',
backgroundColor:'#fff'
});
var picker = Ti.UI.createPicker({
top: 30,
left: 0,
right: 0,
selectionIndicator: true
});
win1.add(picker);
picker.addEventListener('change', function(e) {
Ti.API.info("You selected row: "+e.row+", column: "+e.column+", custom_item: "+e.row.custom_item);
/*for(i in e)
{
Ti.API.info('index e ->'+e+' inside e ->'+e[i]);
}*/
});
var colCountries = Ti.UI.createPickerColumn({
width: 50
});
var coAnyRow = Ti.UI.createPickerRow();
var coAnyRow2 = Ti.UI.createPickerRow();
var coAnyRow3 = Ti.UI.createPickerRow();
var coAnyRow4 = Ti.UI.createPickerRow();
var coAnyLabel = Ti.UI.createLabel({
text:'Any',
color:'#000',
textAlign:'center',
font:{fontWeight:'bold', fontSize:12}
});
var coAnyLabel2 = Ti.UI.createLabel({
text:'Two',
color:'#000',
textAlign:'center',
font:{fontWeight:'bold', fontSize:12}
});
var coAnyLabel3 = Ti.UI.createLabel({
text:'three',
color:'#000',
textAlign:'center',
font:{fontWeight:'bold', fontSize:12}
});
var coAnyLabel4 = Ti.UI.createLabel({
text:'Four',
color:'#000',
textAlign:'center',
font:{fontWeight:'bold', fontSize:12}
});
coAnyRow.add(coAnyLabel);
coAnyRow2.add(coAnyLabel2);
coAnyRow3.add(coAnyLabel3);
coAnyRow4.add(coAnyLabel4);
colCountries.addRow(coAnyRow);
colCountries.addRow(coAnyRow2);
colCountries.addRow(coAnyRow3);
colCountries.addRow(coAnyRow4);
picker.add([colCountries]);
win1.open();
Pull pending #1129
Closing issue Tested with Ti Studio 1.0.8.201201101928 Ti Mob SDK 1.9.0.v20120111233134 OSX Lion iPhone 4S, iPad 2 Expected behavior of picker rows not disappearing is shown
Reopening to correct label
Reopening issue - required to be in 1.7.x line.
Pull pending #1174 for the 1_7_X branch
Closing bug. Verified fix on: SDK build: 1.9.0.v20120117114633 Titanium Studio, build: 1.0.8.201201131907 OS: Mac OS X Lion Device: iphone 4S (5.0.1)
Updating labels