{ "id": "63873", "key": "TIMOB-3241", "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": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2017-06-05T21:34:06.000+0000", "created": "2011-04-15T03:40:13.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "1.6", "android", "height" ], "versions": [], "issuelinks": [ { "id": "17515", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "92294", "key": "TIMOB-9226", "fields": { "summary": "Android: Review composite layout feature requests", "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": "7", "description": "gh.issue.story.desc", "name": "Story", "subtask": false } } } } ], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-06-05T21:34:06.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "{html}
Height is not being propagated properly to child components.
\nIn the following code, the 'body' height is read incorrectly\nwhen the createWindow has navBarHidden: true or fullscreen:false.\nIt is corrected, though, if I uncomment the alert in the\neventlistener
\n(the code is a mock up of a window with header, footer and a\npull up notification panel)
\napp.js
\nTitanium.UI.createWindow({ url: 'test.js' }).open();
\n
\ntest.js:
\nvar win = Titanium.UI.currentWindow;\n\nvar header = Titanium.UI.createView({\n top:0,\n height:50,\n backgroundColor:'blue'\n});\nwin.add(header)\n\nvar body = Titanium.UI.createView ({\n top:50,\n bottom:50,\n backgroundColor:'white'\n});\nwin.add(body);\n\n var pullupPanel = Titanium.UI.createView({\n backgroundColor:'green',\n height:100\n });\n body.add(pullupPanel)\n\n var pullupPanelHeader =Titanium.UI.createView ({\n backgroundColor:'red',\n top:0,\n height:30 \n })\n pullupPanel.add(pullupPanelHeader)\n\nvar footer = Titanium.UI.createView ({\n bottom:0,\n height:50,\n backgroundColor:'blue'\n});\nwin.add(footer);\n\nwin.addEventListener('open', function () {\n\n //alert (\"hi\");\n\n pullupPanel.top=body.size.height-30;\n pullupPanel.height=body.size.height;\n})
\n