{ "id": "100373", "key": "TIMOB-10741", "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": "15397", "description": "2013 Soprint 07 API", "name": "2013 Sprint 07 API", "archived": true, "released": true, "releaseDate": "2013-04-08" }, { "id": "15105", "description": "2013 Sprint 07", "name": "2013 Sprint 07", "archived": true, "released": true, "releaseDate": "2013-04-08" } ], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2013-04-08T05:50:01.000+0000", "created": "2012-09-04T03:00:37.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "core", "triage" ], "versions": [ { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" }, { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" } ], "issuelinks": [], "assignee": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2014-07-17T10:10:14.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": "Last view not positioned correctly when set of views placed on scrollview with horizontal layout.\r\n\r\nThis is not a regression.It even occurs on 2.1.1.GA\r\n\r\nSteps to Reproduce:\r\n\r\n1. Run and install the app on to device.\r\n2. Rotate the device in other orientation.(On iOS simulator the issue is seen even without rotation)\r\n\r\nExpected Result:\r\nThere will be a grid in which a View of 5 colours (red,blue,pink,white and black) will appear.\r\n\r\nActual Result:\r\nLast view not positioned correctly.\r\n\r\naap.js\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow();\r\nwin.open();\r\n \r\n \r\nvar scrollView = Ti.UI.createScrollView({\r\n contentHeight:'auto',\r\n contentWidth:0,\r\n layout:'horizontal',\r\n backgroundColor: 'green'\r\n});\r\nwin.add(scrollView);\r\n \r\nvar colors = ['red', 'blue', 'pink', 'white', 'black'];\r\n \r\nvar max = 120;\r\nfor(var i = 0; i < max; i++){\r\n var view = Ti.UI.createView({\r\n backgroundColor: colors[i%colors.length],\r\n borderColor:'gray',\r\n borderWidth:4,\r\n height: 100,\r\n left: 10,\r\n width: 100,\r\n top: 10\r\n });\r\n \r\n view.addEventListener('click', function(_event){\r\n scrollView.remove(_event.source);\r\n });\r\n scrollView.add(view);\r\n}\r\nwin.add(view);\r\n{code}\r\n\r\n", "attachment": [ { "id": "36684", "filename": "iOS Simulator Screen shot Mar 27, 2013 9.53.36 AM.png", "author": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-27T08:35:44.000+0000", "size": 6791, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS: ScrollView - last view not positioned correctly when set of views placed on scrollview with horizontal layout", "creator": { "name": "nchhabra", "key": "nchhabra", "displayName": "Neha Chhabra", "active": true, "timeZone": "Asia/Kolkata" }, "subtasks": [], "reporter": { "name": "nchhabra", "key": "nchhabra", "displayName": "Neha Chhabra", "active": true, "timeZone": "Asia/Kolkata" }, "environment": "Tested with Titanium Studio:2.1.2.201208301612\r\nTested with Titanium SDK: 2.2.0.v20120831200114\r\niOS Device: iPad 2 (5.1),iOS Simulator\r\nOS: Mac OSX 10.8", "comment": { "comments": [ { "id": "244252", "author": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Issue reproduces \n\nTested with\n\nTitanium Studio, build: 3.0.1.201212181159\nTitanium SDK version: 3.1.0 \nTitanium SDK version: 3.0.2 \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-03-27T08:35:15.000+0000", "updated": "2013-03-27T08:35:15.000+0000" }, { "id": "245289", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Also verified occurs with:\nMac OS 10.8.3\nSDK: 3.1.0.v20130402092426\nAppcelerator Studio, build: 3.1.0.201303312320\nCLI 3.1.0-beta\nnode-appc 1.0.29-beta", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-02T21:53:28.000+0000", "updated": "2013-04-02T21:53:28.000+0000" }, { "id": "246371", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "This bug has been filed before and has been resolved before with the same resolution. Somewhere in the test plan you have this code which is incorrect.\r\n\r\n\r\nRemove the last win.add(view) call. You are adding the same view to the scrollView and window and the last call wins.\r\n", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-04-08T05:50:01.000+0000", "updated": "2013-04-08T05:50:01.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }