Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-6913] iOS: Picker labels disappear when user scrolls quickly the picker

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-02-10T00:09:33.000+0000
Affected Version/sRelease 1.8.0.1
Fix Version/sRelease 1.7.6, Sprint 2012-01, Release 2.0.0, Release 1.8.1
ComponentsiOS
Labelsmodule_picker, parity, qe-testadded
ReporterRadamantis Torres-Lechuga
AssigneeVishal Duggal
Created2011-12-28T15:22:23.000+0000
Updated2012-10-06T00:39:07.000+0000

Description

Expected Behavior

The user can scroll down and up through the picker and the labels or views, always need to be there

Actual Behavior

When the user scrolls quickly some views or labels of the column picker just disappear

Test Case


// 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();

Attachments

FileDateSize
Screen Shot 2011-12-28 at 3.26.29 PM.png2011-12-28T15:22:23.000+000025692
Screen Shot 2011-12-28 at 5.06.49 PM.png2011-12-28T15:22:23.000+000047450
Screen Shot 2011-12-28 at 5.07.14 PM.png2011-12-28T15:22:23.000+000046250

Comments

  1. Vishal Duggal 2012-01-05

    Pull pending #1129
  2. Michael Pettiford 2012-01-12

    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
  3. Vishal Duggal 2012-01-13

    Reopening to correct label
  4. Stephen Tramer 2012-01-13

    Reopening issue - required to be in 1.7.x line.
  5. Vishal Duggal 2012-01-13

    Pull pending #1174 for the 1_7_X branch
  6. Wilson Luu 2012-01-17

    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)
  7. Wilson Luu 2012-01-17

    Updating labels

JSON Source