{ "id": "80277", "key": "TIMOB-5281", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "10100", "description": "This issue won't be actioned.", "name": "Won't Do" }, "resolutiondate": "2020-01-09T19:23:23.000+0000", "created": "2011-09-13T10:48:12.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "api", "supportTeam" ], "versions": [ { "id": "11570", "description": "", "name": "Release 1.7.2", "archived": true, "released": true, "releaseDate": "2011-07-21" }, { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" }, { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "issuelinks": [ { "id": "56707", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "171999", "key": "TIMOB-26255", "fields": { "summary": "iOS: Removing and re-adding \"plain\" picker resets last selection", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "priority": { "name": "Low", "id": "4" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2020-01-09T19:23:24.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "h6.Problem\r\nWhen a fourth picker is added to a view; when scrolling to the fourth view and getting back to the second view, the picker rows reset to the default.\r\n\r\nh6.Tested on\r\nSimulator iOS 4.3 & iPad 1 OS 4.3.2\r\n\r\nh6.Titanium SDKs\r\nWith SDK 1.7.x, CI Builds 1.8.x picker rows reset \r\nWith SDK 1.6.2 it doesn't changes picker rows - as expected\r\n\r\nh6.Reproduction steps\r\n{noformat}\r\n1.) Set the first picker on \"Mangos\" then scroll,\r\n2.) Set the second picker on \"Mangos\" then scroll, (or any other option it does not matter at all).\r\n3.) Set the third picker on \"Mangos\" then scroll to the fourth picker,\r\n4.) Go back to the second, and you will see that the picker is reset to default.\r\n{noformat}\r\n\r\nh6.Repro sequence - Pickers added to Views, Views added to a ScrollableView\r\n{code:title=app.js}\r\n// this sets the background color of the master UIView (when there are no windows/tab groups on it)\r\nTitanium.UI.setBackgroundColor('#000');\r\n\r\n// create tab group\r\nvar tabGroup = Titanium.UI.createTabGroup();\r\n\r\n//\r\n// create base UI tab and root window\r\n//\r\nvar win1 = Titanium.UI.createWindow({ \r\n title:'Tab 1',\r\n backgroundColor:'#fff'\r\n});\r\n\r\nvar picker0 = Ti.UI.createPicker();\r\nvar picker1 = Ti.UI.createPicker();\r\nvar picker2 = Ti.UI.createPicker();\r\nvar picker3 = Ti.UI.createPicker();\r\nvar picker4 = Ti.UI.createPicker();\r\n\r\n\r\nvar data = [];\r\ndata[0]=Ti.UI.createPickerRow({title:'Bananas',custom_item:'b'});\r\ndata[1]=Ti.UI.createPickerRow({title:'Strawberries',custom_item:'s'});\r\ndata[2]=Ti.UI.createPickerRow({title:'Mangos',custom_item:'m'});\r\ndata[3]=Ti.UI.createPickerRow({title:'Grapes',custom_item:'g'});\r\n\r\npicker0.add(data);\r\npicker1.add(data);\r\npicker2.add(data);\r\npicker3.add(data);\r\npicker4.add(data);\r\n\r\nvar vpicker0 = Titanium.UI.createView({backgroundColor:'#123'});vpicker0.add(picker0);\r\nvar vpicker1 = Titanium.UI.createView({backgroundColor:'#123'});vpicker1.add(picker1);\r\nvar vpicker2 = Titanium.UI.createView({backgroundColor:'#123'});vpicker2.add(picker2);\r\nvar vpicker3 = Titanium.UI.createView({backgroundColor:'#123'});vpicker3.add(picker3);\r\nvar vpicker4 = Titanium.UI.createView({backgroundColor:'#123'});vpicker4.add(picker4);\r\n\r\nvar scrollView = Titanium.UI.createScrollableView({\r\n\tviews:[vpicker0,vpicker1,vpicker2,vpicker3,vpicker4],\r\n\tshowPagingControl:true,\r\n\tpagingControlHeight:30,\r\n\tmaxZoomScale:2.0,\r\n\tcurrentPage:1\r\n});\r\n\r\nwin1.add(scrollView);\r\n\r\nvar tab1 = Titanium.UI.createTab({ \r\n icon:'KS_nav_views.png',\r\n title:'Tab 1',\r\n window:win1\r\n});\r\n\r\nvar label1 = Titanium.UI.createLabel({\r\n\tcolor:'#999',\r\n\ttext:'I am Window 1',\r\n\tfont:{fontSize:20,fontFamily:'Helvetica Neue'},\r\n\ttextAlign:'center',\r\n\twidth:'auto'\r\n});\r\n\r\nwin1.add(label1);\r\n\r\n//\r\n// create controls tab and root window\r\n//\r\nvar win2 = Titanium.UI.createWindow({ \r\n title:'Tab 2',\r\n backgroundColor:'#fff'\r\n});\r\nvar tab2 = Titanium.UI.createTab({ \r\n icon:'KS_nav_ui.png',\r\n title:'Tab 2',\r\n window:win2\r\n});\r\n\r\nvar label2 = Titanium.UI.createLabel({\r\n\tcolor:'#999',\r\n\ttext:'I am Window 2',\r\n\tfont:{fontSize:20,fontFamily:'Helvetica Neue'},\r\n\ttextAlign:'center',\r\n\twidth:'auto'\r\n});\r\n\r\nwin2.add(label2);\r\n\r\n//\r\n// add tabs\r\n//\r\ntabGroup.addTab(tab1); \r\ntabGroup.addTab(tab2); \r\n\r\n// open tab group\r\ntabGroup.open();\r\n{code}\r\n\r\nh6.Repro sequence - Pickers added directly to a ScrollableView\r\n{code:title=app.js}\r\n// this sets the background color of the master UIView (when there are no windows/tab groups on it)\r\nTitanium.UI.setBackgroundColor('#000');\r\n\r\n// create tab group\r\nvar tabGroup = Titanium.UI.createTabGroup();\r\n\r\n\r\n//\r\n// create base UI tab and root window\r\n//\r\nvar win1 = Titanium.UI.createWindow({ \r\n title:'Tab 1',\r\n backgroundColor:'#fff'\r\n});\r\n\r\n\r\nvar picker0 = Ti.UI.createPicker();\r\nvar picker1 = Ti.UI.createPicker();\r\nvar picker2 = Ti.UI.createPicker();\r\nvar picker3 = Ti.UI.createPicker();\r\nvar picker4 = Ti.UI.createPicker();\r\n\r\n\r\nvar data = [];\r\ndata[0]=Ti.UI.createPickerRow({title:'Bananas',custom_item:'b'});\r\ndata[1]=Ti.UI.createPickerRow({title:'Strawberries',custom_item:'s'});\r\ndata[2]=Ti.UI.createPickerRow({title:'Mangos',custom_item:'m'});\r\ndata[3]=Ti.UI.createPickerRow({title:'Grapes',custom_item:'g'});\r\n\r\n// turn on the selection indicator (off by default\r\n\r\npicker0.add(data);\r\npicker1.add(data);\r\npicker2.add(data);\r\npicker3.add(data);\r\npicker4.add(data);\r\n\r\nvar scrollView = Titanium.UI.createScrollableView({\r\n\tviews:[picker0,picker1,picker2,picker3,picker4],\r\n\tshowPagingControl:true,\r\n\tpagingControlHeight:30,\r\n\tmaxZoomScale:2.0,\r\n\tcurrentPage:1\r\n});\r\n\r\nwin1.add(scrollView);\r\n\r\n\r\nvar tab1 = Titanium.UI.createTab({ \r\n icon:'KS_nav_views.png',\r\n title:'Tab 1',\r\n window:win1\r\n});\r\n\r\nvar label1 = Titanium.UI.createLabel({\r\n\tcolor:'#999',\r\n\ttext:'I am Window 1',\r\n\tfont:{fontSize:20,fontFamily:'Helvetica Neue'},\r\n\ttextAlign:'center',\r\n\twidth:'auto'\r\n});\r\n\r\nwin1.add(label1);\r\n\r\n//\r\n// create controls tab and root window\r\n//\r\nvar win2 = Titanium.UI.createWindow({ \r\n title:'Tab 2',\r\n backgroundColor:'#fff'\r\n});\r\nvar tab2 = Titanium.UI.createTab({ \r\n icon:'KS_nav_ui.png',\r\n title:'Tab 2',\r\n window:win2\r\n});\r\n\r\nvar label2 = Titanium.UI.createLabel({\r\n\tcolor:'#999',\r\n\ttext:'I am Window 2',\r\n\tfont:{fontSize:20,fontFamily:'Helvetica Neue'},\r\n\ttextAlign:'center',\r\n\twidth:'auto'\r\n});\r\n\r\nwin2.add(label2);\r\n\r\n\r\n\r\n//\r\n// add tabs\r\n//\r\ntabGroup.addTab(tab1); \r\ntabGroup.addTab(tab2); \r\n\r\n\r\n// open tab group\r\ntabGroup.open();\r\n{code}\r\n\r\nh6.Associated HD ticket\r\nhttp://appc.me/c/APP-182462", "attachment": [], "flagged": false, "summary": "iOS: ScrollableView dropping views (w/ more than three views)", "creator": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "Titanium SDK: Mobile 1.7.2, 3.2.0.GA\r\nPlatform OS: iOS Version: 4.2 , 7.0.3", "comment": { "comments": [ { "id": "203016", "author": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "body": "Tested both examples on the iOS simulator on 2.1GA, issue still reproducible.", "updateAuthor": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "created": "2012-07-12T13:49:59.000+0000", "updated": "2012-07-12T13:49:59.000+0000" }, { "id": "250931", "author": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "body": "issue reproduces\n\nTested with\nTitanium Studio, build: 3.0.1.201212181159\nTitanium SDK version: 3.1.0\niOS iPhone Simulator: iOS SDK version: 6.0", "updateAuthor": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-09T04:39:08.000+0000", "updated": "2013-05-09T04:39:08.000+0000" }, { "id": "453563", "author": { "name": "ahutton", "key": "ahutton", "displayName": "Alan Hutton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "It has been decided that this issue should be closed as “Won’t do.” This issue is out of date with our current supported SDK release (7.5.2.GA as of the date of closure), and out of date with mobile OS versions. Updating, or creating code may not reproduce the issue reported, or be a valid test case.\r\n\r\nIf community members feel that the issue is still valid, please create a new ticket. Please reference this closed ticket number, include SDK used, comments, and code that demonstrates/reproduces the issue.", "updateAuthor": { "name": "ahutton", "key": "ahutton", "displayName": "Alan Hutton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-01-09T19:23:24.000+0000", "updated": "2020-01-09T19:23:24.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }