{ "id": "65421", "key": "TIMOB-4243", "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": "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": "2017-08-17T21:38:06.000+0000", "created": "2011-05-17T08:57:31.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-08-17T21:38:06.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": "Tableview row with vertical layout and few labels added to this row result in row flickering, while window opens. The labels appear as moving a little from bottom to their actual position in the row.\n\nThis issue is visible on device (iPhone 3GS firmware 4.1 (8b117)), Ti Mobile 1.7.0 with iOS 4.2.\n\nThe test case is written below. The troubled code is in a sub-context window (newWindow.js) that is opened in the navigation group of a tab. This way using two windows going back and forth will illustrate the issue.\n\nIf \"layout: 'vertical'\" is commented and \"top\" attribute of the labels is commented out, the flickering disappears.\n\n{code:title=app.js|borderStyle=solid}\n\nvar tabGroup = Titanium.UI.createTabGroup({\n visible: true\n});\nvar tabWindow = Titanium.UI.createWindow({\n title: 'Tab window',\n url: 'tabWindow.js',\n\tbackgroundColor: 'white'\n});\nvar tab = Titanium.UI.createTab({\n icon: Titanium.UI.iPhone.SystemIcon.MORE,\n title: 'Tab',\n window: tabWindow\n});\ntabWindow.navGroup = tab;\n\ntabGroup.addTab(tab);\ntabGroup.open();\n\n{code} \n\n{code:title=tabWindow.js|borderStyle=solid}\n\nvar win = Titanium.UI.currentWindow;\n\nvar btn = Titanium.UI.createButton({\n title: 'open',\n style: Titanium.UI.iPhone.SystemButtonStyle.DONE\n});\nbtn.addEventListener('click', function(e){\n var newWin = Titanium.UI.createWindow({\n title: 'New window',\n url: 'newWindow.js'\n });\n win.navGroup.open(newWin, {\n animated: true\n });\n});\nwin.add(btn);\n\n{code} \n\n\n{code:title=newWindow.js|borderStyle=solid}\n\nvar win = Titanium.UI.currentWindow;\n\nvar sectionView = Ti.UI.createView({\n backgroundColor: 'transparent',\n height: 40,\n left: 10,\n top: 0,\n width: 280\n});\nvar sectionHeaderLabel = Titanium.UI.createLabel({\n left: 15,\n height: 40,\n text: 'This is section header',\n backgroundColor: 'transparent'\n});\nsectionView.add(sectionHeaderLabel);\n\nvar sectionView = Titanium.UI.createTableViewSection({\n backgroundColor: 'transparent',\n headerView: sectionView\n});\nfor (var i = 0; i < 5; i++) {\n var row = Titanium.UI.createTableViewRow({\n height: 40,\n layout: 'vertical',\n selectionStyle: Ti.UI.iPhone.TableViewCellSelectionStyle.NONE,\n hasChild: false\n });\n var rowLabel = Titanium.UI.createLabel({\n left: 10,\n// top:0,\n height: 25,\n width: 270,\n text: 'Text label ' + i,\n textAlign: 'left'\n });\n row.add(rowLabel);\n var rowLabelDetails = Titanium.UI.createLabel({\n left: 10,\n// top:26,\n height: 10,\n width: 270,\n font: {\n fontSize: 12\n },\n text: 'little text '+i,\n backgroundColor: 'transparent',\n textAlign: 'left'\n });\n row.add(rowLabelDetails);\n sectionView.add(row);\n}\n\nvar data = [];\ndata.push(sectionView);\n\nvar tableview = Titanium.UI.createTableView({\n style: Titanium.UI.iPhone.TableViewStyle.GROUPED,\n backgroundColor: 'white',\n data: data,\n scrollable: true,\n top: 5,\n left: 10,\n width: 300\n});\nwin.add(tableview);\n\n{code} ", "attachment": [], "flagged": false, "summary": "tableview row with vertical layout flickering", "creator": { "name": "nnedev", "key": "nnedev", "displayName": "N. Nedev", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "nnedev", "key": "nnedev", "displayName": "N. Nedev", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Ti Mobile 1.7.0 with iOS 4.2.\niPhone 3GS firmware 4.1 (8b117)", "comment": { "comments": [ { "id": "134442", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "Thank you N.Nedev for such a well-defined and conscientious ticket. Assigning to iOS project lead...", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2011-05-30T04:19:21.000+0000", "updated": "2011-05-30T04:19:21.000+0000" }, { "id": "426877", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "This is no longer occurring with the following environment;\r\niPhone 6 (10.2)\r\nStudio 4.9.1.201707200100\r\nTi SDK 6.1.2 GA\r\nAppc CLI 6.2.3\r\nTi CLI 5.0.14\r\nAlloy 1.9.13\r\nXcode 8.2 (8C38)\r\nNode v4.8.2\r\nJava 1.8.0_131", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-08-17T21:38:06.000+0000", "updated": "2017-08-17T21:38:06.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }