{ "id": "89545", "key": "TIMOB-8559", "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": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" }, { "id": "13272", "description": "Release 2.0.1", "name": "Release 2.0.1", "archived": true, "released": true, "releaseDate": "2012-04-16" }, { "id": "13277", "name": "Sprint 2012-08", "archived": true, "released": true, "releaseDate": "2012-04-22" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-04-18T15:43:06.000+0000", "created": "2012-04-05T07:31:31.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "module_layout", "qe-testadded" ], "versions": [ { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" } ], "issuelinks": [], "assignee": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2012-04-30T21:48:19.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": "h4.Problem\r\nThere is a regression in Composite Layouts in SDK 2.0.0.v20120325213306 and later, including 2.1.0.v.... Controls that are added to 'vertical' layout windows are positioned as if the window had an 'absolute' layout setting.\r\n\r\nWorks fine in iOS 5.0\r\nBROKEN in iOS 4.3\r\nWorks fine in SDK 2.0.0.v20120322231759 (any iOS version)\r\n\r\nh4.Testcase\r\n- Set up a new project to use the 2.0.0.v20120325213306 SDK.\r\n- Drop the following code into app.js and run on the iPhone 4.3 simulator.\r\n- The label will appear centered in the window. *This is incorrect*...it should appear at the top of the window, immediately below the nav bar.\r\n- Rerun on the iPhone 5.0 simulator.\r\n- The label appears correctly at the top of the window, immediately below the nav bar.\r\n\r\napp.js\r\n{code}\r\nvar win1 = Ti.UI.createWindow({layout:'vertical'});\r\n\r\nvar lbl1 = Ti.UI.createLabel({text:'Should be immediately below the navbar',\r\n color:'blue',\r\n backgroundColor:'white',\r\n width:Ti.UI.SIZE,\r\n height:Ti.UI.SIZE});\r\nwin1.add(lbl1);\r\n\r\nvar ng = Ti.UI.iPhone.createNavigationGroup({window:win1});\r\nvar NavBase = Ti.UI.createWindow();\r\nNavBase.add(ng);\r\nNavBase.open(); // this opens win1 automatically\r\n{code}\r\n", "attachment": [], "flagged": false, "summary": "iOS: Vertical layout window with navgroup acts like absolute layout in iOS 4.3", "creator": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "environment": "- Titanium SDK 2.0.0.v20120325213306\r\n- Titanium Studio 1.0.9.201202141208\r\n- iOS 4.3 (simulator)\r\n- Mac OSX 10.7.2\r\n", "comment": { "comments": [ { "id": "190404", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Test Code\r\n{code}\r\nvar rootWin = Ti.UI.createWindow({layout:'vertical'});\r\n\r\n\r\nvar lbl1 = Ti.UI.createLabel({text:'Should be immediately below the navbar',\r\n color:'blue',\r\n backgroundColor:'white',\r\n \t});\r\n \t\r\nrootWin.add(lbl1);\r\n \r\nvar btnOpenWin = Ti.UI.createButton({\r\n title : \"open new window\",\r\n width : 200,\r\n height : 35\r\n});\r\n \r\nbtnOpenWin.addEventListener('click', function()\r\n{\r\n var win2 = Ti.UI.createWindow({layout:'vertical'});\r\n var lbl2 = Ti.UI.createLabel({text:'I am second window',\r\n color:'blue',\r\n backgroundColor:'white',\r\n });\r\n win2.add(lbl2);\r\n ng.open(win2, {animated:true});\r\n \r\n});\r\n \r\nrootWin.add(btnOpenWin);\r\n \r\nng = Ti.UI.iPhone.createNavigationGroup({window:rootWin});\r\nvar NavBase = Ti.UI.createWindow();\r\nNavBase.add(ng);\r\nNavBase.open(); // this opens the \"root\" window, automatically\r\n{code}", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-04-09T23:42:21.000+0000", "updated": "2012-04-09T23:42:21.000+0000" }, { "id": "190405", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Pull pending https://github.com/appcelerator/titanium_mobile/pull/1969", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-04-09T23:43:59.000+0000", "updated": "2012-04-09T23:43:59.000+0000" }, { "id": "190585", "author": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "body": "Will this fix be merged into 2.0.0/2.0.1, or is it only available in 2.1.0 ?", "updateAuthor": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "created": "2012-04-11T11:04:33.000+0000", "updated": "2012-04-11T11:05:24.000+0000" }, { "id": "190700", "author": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "body": "Verified fixed in SDK 2.1.0.v20120411154414", "updateAuthor": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "created": "2012-04-12T06:41:36.000+0000", "updated": "2012-04-12T06:41:36.000+0000" }, { "id": "190972", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing bug. Verified fix on:\r\n\r\nSDK build: 2.0.1.v20120412163344\r\nTitanium Studio, build: 2.0.1.201204111749\r\nxcode: 4.3\r\nDevice: iPhone 3GS (4.3), iPhone 4S (5.1)", "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-04-13T16:34:27.000+0000", "updated": "2012-04-13T16:34:27.000+0000" }, { "id": "191703", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Reopening to update labels.", "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-04-18T15:42:54.000+0000", "updated": "2012-04-18T15:42:54.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }