{ "id": "102341", "key": "TIMOB-11203", "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": "14161", "description": "Release 3.0.1", "name": "Release 3.0.1", "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": "14811", "description": "2013 Sprint 01 API", "name": "2013 Sprint 01 API", "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-04T10:24:47.000+0000", "created": "2012-09-28T09:03:40.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "api", "module_views", "qe-ios090112", "qe-testadded", "regression" ], "versions": [ { "id": "14137", "description": "Release 2.1.3", "name": "Release 2.1.3", "archived": true, "released": true, "releaseDate": "2012-10-03" } ], "issuelinks": [ { "id": "21623", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "102295", "key": "TIMOB-11194", "fields": { "summary": "iOS: Views: View on window with vertical layout first drawn on centre of screen and then is re-drawn on top.", "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": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2013-01-07T02:56:40.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": "View on window with vertical layout first drawn from left top then to the center(top).\r\n\r\nThis is a regression.It does not occurs on 2.1.2.GA\r\n\r\nSteps to Reproduce:\r\n\r\n1. Install and launch the app on device.\r\n2. Click on the button \"click\"\r\n\r\nActual Result:\r\n\r\nAfter Step2: The red view initially appears left top of the screen for a moment and then moves to the center(top) as if it is animated.\r\n\r\nExpected Result:\r\n\r\nIt should appear in center (top).\r\n\r\napp.js\r\n\r\n{code}\r\nvar win1 = Ti.UI.createWindow({\r\n\t \r\n\t title :'Win 1',\r\n\t\tlayout :'vertical',\r\n\t\tbackgroundColor :'#fff'\r\n});\r\n\r\nvar btn=Ti.UI.createButton({\r\n\t\r\n\ttitle:'click'\r\n\t\r\n})\r\n\r\nwin1.add(btn);\r\n\r\nbtn.addEventListener('click', function(e){\r\n\t\r\n\r\nvar win = Ti.UI.createWindow({\r\n\t \r\n\t title :'Win 1',\r\n\t\tlayout :'vertical',\r\n\t\tbackgroundColor :'white'\r\n});\r\n\t\t \r\n\t\tvar vw1 = Ti.UI.createView({\r\n\t\t layout:'horizontal',\r\n\t\t backgroundColor:'red',\r\n\t\t width:'100',\r\n\t\t height:75,\r\n\t\t \r\n\t\t});\r\n\t\twin.add(vw1);\r\n\t\t \r\n\t\t\r\nwin.open();\r\n\r\n});\r\n\r\nwin1.open();\r\n\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS: Views: View on window with vertical layout first drawn from left top then to the center (top).", "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.1.3.v20120927181611\r\niOS Device: iPhone 4s(5.1),iOS Simulator 6.0\r\nOS: Mac OSX 10.8.1\r\nXcode : 4.5", "comment": { "comments": [ { "id": "221352", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I notice that the difference in code between this one and TIMOB-11194 is line 29, where in TIMOB-11194, the width is \"100%\" and here, the width is \"100\". Is that intentional? What happens if you test with the exact same release as TIMOB-11194 was closed against?\n\n", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-09-28T13:31:38.000+0000", "updated": "2012-09-28T13:31:38.000+0000" }, { "id": "221378", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Whoops. Grabbed wrong one.", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-09-28T16:48:54.000+0000", "updated": "2012-09-28T16:48:54.000+0000" }, { "id": "232316", "author": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The issue still exists on SDK 3.0.0.GA\nThe width was intentionally set to \"100\" so that the view does not cover up the whole width of the screen and then only left to center horizontal movement of the view can be noticed. The test in TIMOB-11194 where the width was 100% reported view first drawn in vertical centre of screen and then move to the top, hence width of the view did not matter in that test.\nAlso the behaviour in the current ticket was noticed only after the build in which TIMOB-11194 was closed. Prior to that build the behaviour reported in TIMOB-11194 only used to occur.", "updateAuthor": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-12-21T08:01:47.000+0000", "updated": "2012-12-21T08:01:47.000+0000" }, { "id": "233081", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Pull pending \r\nhttps://github.com/appcelerator/titanium_mobile/pull/3657", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-01-03T15:23:09.000+0000", "updated": "2013-01-03T15:23:09.000+0000" }, { "id": "233237", "author": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "body": "CR & FR", "updateAuthor": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-01-04T10:24:47.000+0000", "updated": "2013-01-04T10:24:47.000+0000" }, { "id": "233238", "author": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Needs backport to 3_0_X branch", "updateAuthor": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-01-04T10:25:04.000+0000", "updated": "2013-01-04T10:25:04.000+0000" }, { "id": "233256", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Backport PR https://github.com/appcelerator/titanium_mobile/pull/3660", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-01-04T11:13:45.000+0000", "updated": "2013-01-04T11:13:45.000+0000" }, { "id": "233368", "author": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified with following\r\nTitanium SDK: 3.1.0.v20130105233407\r\nTitanium SDK:3.0.1.v20130105233204\r\nTitanium Studio:3.0.1.201212181159\r\nDevice: Simulator 6.0", "updateAuthor": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-01-07T02:56:40.000+0000", "updated": "2013-01-07T02:56:40.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }