{ "id": "105499", "key": "AC-2257", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2013-04-05T09:23:11.000+0000", "created": "2012-11-26T14:21:06.000+0000", "labels": [ "disappear", "ios", "label", "random", "tableview", "textarea" ], "versions": [], "issuelinks": [], "assignee": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "updated": "2016-03-08T07:41:15.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": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "(sorry if i don't get the formating here, i yet have to got how this works =\r\nI tested this on iOS only,\r\n\r\nI noticed some randomly disappearing labels on my Project,\r\nit seemed only to happen if following conditions where given:\r\n# Table Style set to Grouped\r\n# A textarea has to be added to the table\r\n# a row has to be deleted or inserted\r\n# the label has to be scrolled out of the visible area\r\n# the table has to exceed the height of the display\r\n\r\n----\r\nHowever when i tried to reproduce the problem,\r\nSome labels just disappear randomly when i add an view , with an textarea, to\r\na row , in a table that is longer than the display\r\n\r\n??When i was playing around, trying to reproduce this, sometimes when deleting or inserting rows, labels disappeared randomly when scrolled out of the visible area, even without a textarea, but this only happend 1-2 out of 10 times when i run the build.??\r\n\r\n\r\nBut this is what i ended up with and every time i run it some labels just disappear randomly:\r\n\r\n{code}\r\nTitanium.UI.setBackgroundColor('#000');\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 table = Ti.UI.createTableView({\r\n\tstyle: Titanium.UI.iPhone.TableViewStyle.GROUPED //Well this seemed to be one of the cause for the bug, however it happens without a grouped style as well\r\n});\r\n/*\r\n * Just create some rows with labels on it\r\n */\r\nvar rows = [\"A\",\"As\",\"Asd\",\"ASDF\",\"Bcda\",\"Basd\",\"Basd\",\"Casdf\",\"Casper\",\"Deasd\",\"Dets\",\"Esdfg\",\"Egsdf\",\"Fsdf\",\"Fasdf\",\"Fsdf\",\"Gasdf\",\"Gsdf\",\"Gasdf\",\"Gsdf\",\"Gasdf\",\"Hsdf\",\"Hasdf\",\"Hsdf\",\"Hasdf\",\"Isdf\",\"Iasdf\",\"Isdf\",\"Iasdf\",\"Jsdf\",\"Jasdf\",\"Jsdf\",\"Jasdf\",\"Ksdf\",\"Kasdf\"];\r\nvar secarr = [];\r\n\r\nfor (var i = 0,currS,lastl,l; i < rows.length; i++) {\r\n\tl = rows[i].substr(0,1);\r\n\tif(l != lastl) {\r\n\t\tcurrS = Ti.UI.createTableViewSection({\r\n\t\t\theaderTitle:l\r\n\t\t});\r\n\t\tsecarr.push(currS)\r\n\t}\r\n\tvar view = Ti.UI.createView({\r\n\t\theight:40\r\n\t})\r\n\tvar label = Ti.UI.createLabel({\r\n\t\ttext:rows[i],\r\n\t\theight:40,\r\n\t\ttextAlign:\"right\",\r\n\t\tright:10\r\n\t})\r\n\r\n\tvar row = Ti.UI.createTableViewRow({\r\n\t\theight:40,\r\n\t\ttitle:rows[i]\r\n\t})\r\n\tview.add(label)\r\n\trow.add(view)\r\n\tcurrS.add(row)\r\n\t\r\n\tlastl = l;\r\n}\r\n/*\r\n * Finished with the rows\r\n */\r\n\r\nvar textAreaRow = Ti.UI.createTableViewRow({\r\n\ttitle:\"\",\r\n\theight:150\r\n})\r\nvar textAreaView = Ti.UI.createView({})\r\nvar textArea = Ti.UI.createTextArea({\r\n width:\"100%\",\r\n height:150\t\r\n})\r\n\r\ntextAreaView.add(textArea)\r\ntextAreaRow.add(textAreaView)\r\n\r\n/*The textarea in a tableview row seems to be the of the problem, comment it out and the labels should show correctly\r\n * \r\n */\r\nsecarr[0].add(textAreaRow)\r\n\r\n\r\ntable.setData(secarr)\r\n\r\nwin1.add(table);\r\nwin1.open()\r\n// for (var i = 1;i<10;i++) {\r\n\t// table.deleteRow(10);\r\n// }\r\n/*\r\n * Deleting some rows seemed to be the second one \r\n * Well again, in this case it even screws up without deleting rows\r\n */\r\n{code}\r\n", "attachment": [], "flagged": false, "summary": "iOS: Adding a TextArea to a TableViewRow in a Table that exceeds the height of the display causes labels to disappear randomly", "creator": { "name": "glutamat", "key": "glutamat", "displayName": "Moritz Roessler", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "glutamat", "key": "glutamat", "displayName": "Moritz Roessler", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Macos 10.8.2\r\nTitanium SDK 2.1.4", "comment": { "comments": [ { "id": "245926", "author": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Can't reproduce it on my end; scrolling around and clicking for a while, nothing disappears. Tested on both 2.1.4 GA and latest 3.1 CI with iOS 6 simulator.\r\n\r\nIf you can still reproduce it with 3.0.2 GA, can you attach a screenshot?\r\n\r\nThanks!", "updateAuthor": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-05T09:23:11.000+0000", "updated": "2013-04-05T09:23:11.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }