{ "id": "120658", "key": "TIMOB-15433", "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": [], "resolution": { "id": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2020-02-19T11:44:27.000+0000", "created": "2013-10-01T03:19:43.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "io7", "module", "navbar", "navbarhidden", "window" ], "versions": [ { "id": "15593", "description": "Release 3.1.3", "name": "Release 3.1.3", "archived": true, "released": true, "releaseDate": "2013-09-18" } ], "issuelinks": [], "assignee": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2020-02-19T11:44:27.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": "I am running on 3.1.3GA and iOS7. I have a window with a tableView set up that upon clicking on a row,a new window is opened with more information about the row they clicked on. This event occurs and I am brought to the detailed window, but my Nav Bar does not appear. I set the top value to 20 like the iOS7 guide says, but this does not help. I noticed if I set the top value to something like 60, the tableView window's nav bar appears. This does not help. Any ideas to why this is happening?\r\nHere is my code:\r\n{code:title=bars.js:}\r\nvar win = Ti.UI.currentWindow;\r\nwin.barColor = '#3d6430';\r\nwin.translucent = false;\r\n \r\n \r\n \r\nvar data = [],\r\n \r\n Detail = require('barDetail');\r\n \r\n \r\nvar barList = Titanium.UI.createTableView({\r\n height: Ti.UI.FILL,\r\n width: Ti.UI.FILL,\r\n top: 0,\r\n left: 0\r\n});\r\nwin.add(barList);\r\nbarList.addEventListener('click', function (e) {\r\n Ti.API.info('data: ' + JSON.stringify(e.rowData.data));\r\n var detail = new Detail(e.rowData.data);\r\n detail.open({modal:false});\r\n});\r\n \r\nvar xhr = Titanium.Network.createHTTPClient();\r\nxhr.onload = function () {\r\n var json = JSON.parse(this.responseText);\r\n Ti.API.info(json.length);\r\n for (var i = 0; i < json.length; i++) {\r\n var row = Titanium.UI.createTableViewRow({\r\n className: 'bar-row',\r\n data: json[i].bar,\r\n hasChild: true,\r\n filter: json[i].bar.name\r\n });\r\n var titleLabel = Titanium.UI.createLabel({\r\n text: json[i].bar.name,\r\n font: {\r\n fontSize: 14,\r\n fontWeight: 'bold',\r\n \r\n },\r\n left: 70,\r\n top: 5,\r\n height: 20,\r\n width: 210\r\n });\r\n row.add(titleLabel);\r\n \r\n data.push(row);\r\n }\r\n barList.setData(data);\r\n};\r\nxhr.open('GET', 'http://site.com/data.json');\r\nxhr.send();\r\n \r\nwin.open();\r\n{code}\r\n\r\n{code:title=barsDetail.js:}\r\nfunction detail(data) {\r\n var self = Ti.UI.createWindow({\r\n backgroundColor:'#e9e7e7',\r\n title: data.name,\r\n barColor: '#3d6430',\r\n navTintColor: '#fff',\r\n font:{fontFamily: customFont},\r\n top:20\r\n });\r\n \r\n \r\n \r\n \r\n var ButtonRetour = Ti.UI.createButton({\r\n title:'Back'\r\n}); \r\n \r\nButtonRetour.addEventListener('click', function(){\r\n self.close();\r\n});\r\n \r\nself.leftNavButton = ButtonRetour;\r\n \r\n \r\n \r\n var barData = [];\r\n \r\n \r\n var barImage = Ti.UI.createImageView({\r\n image:data.logo_url,\r\n height:95,\r\n width:149,\r\n top:5,\r\n left:6, \r\n });\r\n \r\n self.add(barImage);\r\n \r\n var addressTitleView = Ti.UI.createView({\r\n backgroundColor:'#3d6430',\r\n height:20,\r\n width:155,\r\n top:5,\r\n right:0,\r\n });\r\n \r\n self.add(addressTitleView);\r\n \r\n var addressTitleLabel = Ti.UI.createLabel({\r\n text:'ADDRESS',\r\n color:'#fff',\r\n font:{size:14, fontFamily: customFont},\r\n right:5\r\n });\r\n \r\n addressTitleView.add(addressTitleLabel);\r\n \r\n var addressView = Ti.UI.createView({\r\n backgroundColor:'#fff',\r\n height:70,\r\n width:150,\r\n top:30,\r\n right:5\r\n });\r\n \r\n self.add(addressView);\r\n \r\n var addressLabel = Titanium.UI.createLabel({\r\n text: data.address + \"\\n\" + data.city + \", MD\",\r\n height:Ti.UI.SIZE,\r\n width:Ti.UI.SIZE,\r\n font:{size:20, fontWeight: 'bold', fontFamily: customFont},\r\n top: 10,\r\n left:5\r\n });\r\n \r\n addressView.add(addressLabel);\r\n \r\n return self;\r\n};\r\n \r\nmodule.exports = detail;\r\n\r\n{code}\r\n", "attachment": [ { "id": "42874", "filename": "Screen Shot 2013-09-30 at 1.17.25 PM.png", "author": { "name": "connorphillips", "key": "connorphillips", "displayName": "Connor Phillips", "active": true, "timeZone": "America/New_York" }, "created": "2013-10-01T03:19:43.000+0000", "size": 17730, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS7: Nav Bar not appearing in detailed window", "creator": { "name": "connorphillips", "key": "connorphillips", "displayName": "Connor Phillips", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "connorphillips", "key": "connorphillips", "displayName": "Connor Phillips", "active": true, "timeZone": "America/New_York" }, "environment": "3.1.3.GA iOS7", "comment": { "comments": [ { "id": "454332", "author": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "body": "Need to use NavigationWindow", "updateAuthor": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "created": "2020-02-19T11:44:27.000+0000", "updated": "2020-02-19T11:44:27.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }