Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-14121] MobileWeb: Picker is very slow to load when there are many elements

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionWon't Fix
Resolution Date2017-06-26T20:09:43.000+0000
Affected Version/sRelease 3.2.0
Fix Version/sn/a
ComponentsMobileWeb
LabelsSupportTeam
ReporterDavide Cassenti
AssigneeChris Barber
Created2013-06-05T10:26:38.000+0000
Updated2018-04-04T23:20:40.000+0000

Description

Problem description

When there are lots of elements (tested with 250) in a picker, the page takes lots of seconds to load.

Steps to reproduce

Use the following code to reproduce the error:
var win = Ti.UI.createWindow({
	backgroundColor: 'white'
});

var picker = Ti.UI.createPicker({
	top: '50dp',
	height: '100dp',
	width: '90%'
});

win.add(picker);

win.addEventListener('open', function() {
	var countries = [];
	for(var i=0; i<250; i++) {
		countries.push(Ti.UI.createPickerRow({
			title : "Country " + (i+1),
			value : (i+1)
		}));
	}
	
	picker.add(countries);
});

win.open();

Comments

  1. Lee Morris 2017-06-26

    Marking ticket as "Won't Fix" as MobileWeb has been deprecated.
  2. Eric Merriman 2018-04-04

    Closing as will not fix.

JSON Source