{ "id": "89705", "key": "TIMOB-8613", "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": "13273", "description": "Release 2.0.2", "name": "Release 2.0.2", "archived": false, "released": true, "releaseDate": "2012-05-31" }, { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" }, { "id": "13405", "description": "Sprint 2012-09 API", "name": "Sprint 2012-09 API", "archived": true, "released": true, "releaseDate": "2012-05-06" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-07-09T04:11:30.000+0000", "created": "2012-04-09T09:56:44.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "SupportTeam", "api", "module_window", "qe-testadded" ], "versions": [ { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" } ], "issuelinks": [ { "id": "19054", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "62684", "key": "TIMOB-2052", "fields": { "summary": "iOS: titleControl snaps to far left initially", "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": "Trivial", "id": "5" }, "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": "2012-07-20T14:11:56.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": "The window title bar doesn't show.\r\nh4. Repro Steps\r\n1. Run the below code in the app.js\r\n2. You can see window without the title.\r\n\r\n[code]\r\nvar tabGrp = Ti.UI.createTabGroup({});\r\nvar tab = Ti.UI.createTab({});\r\n\r\nvar win1 = Titanium.UI.createWindow({ backgroundColor:'#fff' });\r\n\r\nvar btn = Ti.UI.createButton({\r\ntitle:'Click Me' \r\n})\r\n\r\nbtn.addEventListener('click',function(e){\r\nvar titleView = Ti.UI.createView({\r\n})\r\nvar Lable = Ti.UI.createLabel({\r\ntext:'TEST',\r\ntop:10\r\n})\r\n//This will not work\r\n//titleView.add(Lable);\r\n//win1.titleControl = titleView;\r\n\r\n//This will work\r\nwin1.titleControl = Lable;\r\n})\r\n\r\nwin1.add(btn);\r\n\r\ntab.window = win1;\r\n\r\ntabGrp.addTab(tab);\r\ntabGrp.open();\r\n[code]", "attachment": [ { "id": "27386", "filename": "Screen shot 2012-04-24 at 5.16.40 PM.png", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2012-04-25T10:17:33.000+0000", "size": 123317, "mimeType": "image/png" }, { "id": "27387", "filename": "Screen shot 2012-04-24 at 5.16.47 PM.png", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2012-04-25T10:17:33.000+0000", "size": 121271, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS: window title bar doesn't show", "creator": { "name": "nsharma", "key": "nsharma", "displayName": "Nikhil Sharma", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "nsharma", "key": "nsharma", "displayName": "Nikhil Sharma", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "iOS 5 \r\nTi SDK 2.1.x\r\n", "comment": { "comments": [ { "id": "190400", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Pull pending https://github.com/appcelerator/titanium_mobile/pull/1968", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-04-09T22:33:41.000+0000", "updated": "2012-04-09T22:33:41.000+0000" }, { "id": "192575", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "body": "This is still happening:\r\n\r\nWhen you change the orientation, the abbreviated title still appears reduced, even if there is enough space to be displayed.\r\n\r\nBest,\r\n\r\nMauro ", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2012-04-25T10:15:27.000+0000", "updated": "2012-04-25T10:15:27.000+0000" }, { "id": "193186", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Test Code\r\n{code}\r\nvar tabGrp = Ti.UI.createTabGroup({});\r\nvar tab = Ti.UI.createTab({});\r\n\r\nvar win1 = Titanium.UI.createWindow({ \r\n\tbackgroundColor:'#fff',\r\n\torientationModes:[Ti.UI.PORTRAIT,Ti.UI.LANDSCAPE_LEFT,Ti.UI.LANDSCAPE_RIGHT]\r\n});\r\n\r\nvar btn = Ti.UI.createButton({ title:'Click Me' })\r\n\r\nbtn.addEventListener('click',function(e){\r\n\r\n\tvar titleView = Ti.UI.createView({})\r\n\tvar Lable = Ti.UI.createLabel({ text:'LONG TEXT WILL NOT FIT IN PORTRAIT', top:10 })\r\n\t//Method 1\r\n\ttitleView.add(Lable);\r\n\twin1.titleControl = titleView;\r\n\t//Method2\r\n\t//win1.titleControl = Lable;\r\n})\r\n\r\n\r\nwin1.add(btn);\r\n\r\ntab.window = win1;\r\n\r\ntabGrp.addTab(tab);\r\ntabGrp.open();\r\n{code}", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-04-30T13:33:25.000+0000", "updated": "2012-04-30T13:33:25.000+0000" }, { "id": "193187", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Pull pending https://github.com/appcelerator/titanium_mobile/pull/2107", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-04-30T13:34:28.000+0000", "updated": "2012-04-30T13:34:28.000+0000" }, { "id": "194416", "author": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with 2.0.2.v20120505151714 on iPhone 4 5.0.1", "updateAuthor": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-05-10T12:05:41.000+0000", "updated": "2012-05-10T12:05:41.000+0000" }, { "id": "202058", "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": "2012-07-09T04:09:39.000+0000", "updated": "2012-07-09T04:09:39.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }