{ "id": "112694", "key": "TIMOB-13521", "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": [ { "id": "11258", "description": "Holding Pen for Triaged Issues", "name": "Backlog", "archived": false, "released": false } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2017-07-05T18:13:52.000+0000", "created": "2013-04-11T12:22:00.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "supportTeam" ], "versions": [ { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" }, { "id": "14164", "description": "Release 3.0.2", "name": "Release 3.0.2", "archived": true, "released": true, "releaseDate": "2013-02-19" } ], "issuelinks": [], "assignee": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-07-05T18:13:52.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "h2. Description\r\nIn TableView having 2 rows one with ScrollableView in it and other having a button. ScrollableView contains 3 views with different colors(pink/green/black) is added using appendRow works fine for the first time when application started. But on click event listener of button the updateRow method is called which causes ScrollableView dosen't display the first view! if you scroll through the ScrollableView and back to the first, then it display correctly.\r\n\r\nh2. Steps to Reproduce\r\n1. Please use the code below:\r\n{code}\r\n// Main Window\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor: 'white',\r\n});\r\n\r\n// TableView\r\nvar table = Titanium.UI.createTableView({\r\n\tdata: []\r\n});\r\n\r\n// Row 1 with ScrollableView\r\nvar view1 = Ti.UI.createView({ backgroundColor: 'pink' });\r\nvar view2 = Ti.UI.createView({ backgroundColor: 'green' });\r\nvar view3 = Ti.UI.createView({ backgroundColor: 'black' });\r\nvar scrollableView = Ti.UI.createScrollableView({\r\n views: [view1,view2,view3],\r\n showPagingControl: true,\r\n width: 500,\r\n height: 200\r\n});\r\nvar row1 = Titanium.UI.createTableViewRow();\r\nrow1.add(scrollableView);\r\ntable.appendRow(row1);\r\n\r\n\r\n// Row 2 - Refresh Button\r\nvar row2 = Titanium.UI.createTableViewRow();\r\nvar viewButton = Titanium.UI.createView({\r\n\twidth: 500,\r\n\theight: 300\r\n});\r\nvar button = Titanium.UI.createButton({\r\n title: 'Refresh',\r\n width: 500,\r\n height: 300\r\n});\r\nbutton.addEventListener('click', function(e){\r\n\r\n\t// Row 1 with ScrollableView\r\n\tvar view1 = Ti.UI.createView({ backgroundColor: 'pink' }); // >> after press refresh, this view dosen't display!\r\n\tvar view2 = Ti.UI.createView({ backgroundColor: 'green' });\r\n\tvar view3 = Ti.UI.createView({ backgroundColor: 'black' });\r\n\tvar scrollableView = Ti.UI.createScrollableView({\r\n\t views: [view1,view2,view3],\r\n\t showPagingControl: true,\r\n\t width: 500,\r\n\t height: 200\r\n\t});\r\n\tvar newRow1 = Titanium.UI.createTableViewRow();\r\n\tnewRow1.add(scrollableView);\r\n\ttable.updateRow(0, newRow1);\r\n\r\n});\r\nviewButton.add(button);\r\nrow2.add(viewButton);\r\ntable.appendRow(row2);\r\n\r\nwin.add(table);\r\nwin.open();\r\n{code}\r\n2. Install ad run the application. You see the first row having pink color and other views on scrolling.\r\n3. Click on refresh button\r\n4. First view is not displayed.\r\n\r\nNote: It worked fine on 2.1.4 GA", "attachment": [], "flagged": false, "summary": "Android:In tableViewRow containing the scrollable view when updateRow method is called it does not display the first row of the scrollable view", "creator": { "name": "rsharma", "key": "rsharma", "displayName": "Rupesh Sharma", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "rsharma", "key": "rsharma", "displayName": "Rupesh Sharma", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Device : Samsung s2", "comment": { "comments": [ { "id": "423534", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Can no longer reproduce the issue with the following environment;\r\nPixel (7.1)\r\nStudio 4.9.0.201705302345\r\nTi SDK 6.1.1 GA\r\nAppc NPM 4.2.9\r\nAppc CLI 6.2.2\r\nTi CLI 5.0.14\r\nAlloy 1.9.11\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-07-05T18:13:52.000+0000", "updated": "2017-07-05T18:13:52.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }