{ "id": "98481", "key": "TIMOB-10280", "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": "14164", "description": "Release 3.0.2", "name": "Release 3.0.2", "archived": true, "released": true, "releaseDate": "2013-02-19" }, { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" }, { "id": "14803", "description": "2013 Sprint 01 Core", "name": "2013 Sprint 01 Core", "archived": true, "released": true, "releaseDate": "2013-01-14" }, { "id": "14804", "description": "2013 Sprint 01", "name": "2013 Sprint 01", "archived": true, "released": true, "releaseDate": "2013-01-14" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-01-24T09:27:11.000+0000", "created": "2012-08-01T02:34:47.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "core", "module_views", "qe-ios070112", "qe-testadded", "regression" ], "versions": [ { "id": "13572", "description": "Release 2.1.1", "name": "Release 2.1.1", "archived": true, "released": true, "releaseDate": "2012-07-31" } ], "issuelinks": [ { "id": "24627", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "108034", "key": "TIMOB-12317", "fields": { "summary": "Backport TIMOB-10280 to 3.0.1", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "5", "description": "The sub-task of the issue", "name": "Sub-task", "subtask": true } } } }, { "id": "25973", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "109923", "key": "TIMOB-13175", "fields": { "summary": "iOS: TableView setData() is broken on 3.0.2.GA", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2013-02-20T21:12:00.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": "This is a regression. It works fine on 2.1.0.\r\n\r\nSteps to reproduce\r\n1. Use the app below\r\n{code}\r\nvar win = Ti.UI.createWindow({backgroundColor:'black'});\r\n \r\nvar scrollView = Ti.UI.createScrollView({\r\n    layout:'vertical',\r\n    contentHeight:'auto',\r\n    top:0,bottom:0,left:0,right:0\r\n});\r\nwin.add(scrollView);\r\nwin.open();\r\n \r\nvar len = 2;\r\n \r\nfor(var i = 0; i < len; i++){\r\n    scrollView.add(\r\n        Ti.UI.createView({\r\n            top:5,\r\n            left:20,\r\n            right:20,\r\n            backgroundColor:'white',\r\n            height:80\r\n        })\r\n    );\r\n}\r\n \r\nvar magicView = Ti.UI.createView({\r\n    top:5,\r\n    left:30,\r\n    right:30,\r\n    backgroundColor:'red',\r\n    height:100\r\n});\r\nvar viewThatWillGetPushedToTheTop = Ti.UI.createView({\r\n    top:5,\r\n    left:30,\r\n    right:30,\r\n    backgroundColor:'green',\r\n    height:100\r\n});\r\n \r\nscrollView.add(magicView);\r\nscrollView.add(viewThatWillGetPushedToTheTop);\r\n \r\nfor(var i = 0; i < len; i++){\r\n    scrollView.add(\r\n        Ti.UI.createView({\r\n            top:5,\r\n            left:20,\r\n            right:20,\r\n            backgroundColor:'white',\r\n            height:80\r\n        })\r\n    )\r\n}\r\n \r\nscrollView.add(Ti.UI.createView({backgroundColor:'blue',height:100,top:10}))\r\n \r\nsetTimeout(function(){\r\n    magicView.hide();\r\n    viewThatWillGetPushedToTheTop.top -= magicView.height\r\n},4000);\r\n{code}\r\n2) Run the app on iOS simulator\r\n\r\nExpected result:\r\n1) Should see a simple window with a scrollView. In the scrollView there are two white views, a red view, a green view, two more white views, and a blue one. After a 4 second timer, the red view is removed and the green view along with all the below white and blue views are pushed up. When this happens, the blue one (which is 100px height) should not cut off at the middle.\r\n\r\nActual result:\r\n1) A simple window with a scrollView is displayed. In the scrollView there are two white views, a red view, a green view, two more white views, and a blue one. After a 4 second timer, the red view is removed and the green view is pushed up. When this happens, the blue one (which is 100px height) is not cut off at the middle. But the white views (which are below green view) and the blue view are not moved up after removal to red view.", "attachment": [], "flagged": false, "summary": "iOS: View: Hiding a view do not shifts all the views below, up on the screen.", "creator": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Tested with Titanium SDK: 2.1.1.v20120727140110\r\nTested with Titanium  Studio: 2.1.1.201207271312\r\nDevice - iOS simulator 5.0\r\nMachine OS - MAC 10.7.3", "comment": { "comments": [ { "id": "210955", "author": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "body": "On further investigation, found that this issue is not reproducible every time. It occurs at random. Most of the time,it works as expected.I encountered it on the first run of the app and then only a couple of times in next 20 runs.", "updateAuthor": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-01T03:57:32.000+0000", "updated": "2012-08-01T03:57:32.000+0000" }, { "id": "215944", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Possibly a race condition on layout.", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-23T18:14:05.000+0000", "updated": "2012-08-23T18:14:05.000+0000" }, { "id": "215948", "author": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This seems like vertical layout issue , where relayout is not getting triggered properly when the middle view is changing its layout values. \r\n\r\nReassigning this ticket to the core team. ", "updateAuthor": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-23T18:32:11.000+0000", "updated": "2012-08-23T18:32:11.000+0000" }, { "id": "233271", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "I can't reproduce this in either 3_0_X or master. Might have gotten fixed with other scroll view fixes. Does occur on the 2_1_X branch though", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-01-04T12:31:28.000+0000", "updated": "2013-01-04T12:31:28.000+0000" }, { "id": "233277", "author": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "body": "@Vishal, i have an idea i'm trying to verify", "updateAuthor": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-01-04T13:04:24.000+0000", "updated": "2013-01-04T13:04:24.000+0000" }, { "id": "233432", "author": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Proposed PR https://github.com/appcelerator/titanium_mobile/pull/3667", "updateAuthor": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-01-07T12:59:32.000+0000", "updated": "2013-01-07T12:59:32.000+0000" }, { "id": "235057", "author": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with: \r\nSDK:3.1.0.v20130114171802\r\nStudio:3.0.1.201212181159\r\nDevice: iPad2(v 5.1), iPhone3GS(v 5.0.1), iPhone5(v 6.0), iPhone4s(v 5.1)", "updateAuthor": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-01-21T02:53:55.000+0000", "updated": "2013-01-21T02:53:55.000+0000" }, { "id": "235234", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Reopening to add comments\r\nBackport Task TIMOB-12317\r\nBackport PR https://github.com/appcelerator/titanium_mobile/pull/3749", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-01-21T19:05:19.000+0000", "updated": "2013-01-21T19:05:19.000+0000" }, { "id": "235699", "author": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reopening to update labels", "updateAuthor": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-01-24T09:26:41.000+0000", "updated": "2013-01-24T09:26:41.000+0000" } ], "maxResults": 9, "total": 9, "startAt": 0 } } }