{ "id": "62993", "key": "TIMOB-2361", "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-08T23:19:56.000+0000", "created": "2011-04-15T03:17:44.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "android", "defect", "window" ], "versions": [], "issuelinks": [], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-06-08T23:19: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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "{html}

Environment: android 1.4.X (12 Nov), emulator, on ubuntu

\n

As per \nthis user's post to the Q&A, and my subsequent tests shown\nbelow, I can confirm that the title property is not respected when\nset at creation time, and the window is not modal/heavyweight.

\n

The problem exists also when a new context is created (win3.js\nbelow), and a further context thereafter (not shown).

\n

To workaround this issue, users may set navBarHidden:false, but\nthere may be reasons why they need a lightweight view. Thus, this\nissue may be regarded as trivial, if this is a rare case.

\n

app.js:

\n
\nvar win1 = Ti.UI.createWindow({\n    backgroundColor: \"red\",\n    title: \"window title: win1\",\n    exitOnClose: true\n});\nwin1.open();\nvar label1 = Ti.UI.createLabel({title:'label: window 1'});\nwin1.add(label1);\n\n\nvar win2 = Ti.UI.createWindow({\n    backgroundColor: \"green\",\n    title: \"window title: win2\"\n});\nwin2.open();\nvar label2 = Ti.UI.createLabel({title:'label: window 2'});\nwin2.add(label2);\n\n\nvar win3 = Ti.UI.createWindow({\n    backgroundColor: \"blue\",\n    title: \"window title: win3\",\n    url:'win3.js'\n});\nwin3.open();\n
\n

win3.js:

\n
\nvar win = Ti.UI.currentWindow;\nvar label = Ti.UI.createLabel({title:'label: window 3'});\nwin.add(label);\n\nvar win4 = Ti.UI.createWindow({\n    backgroundColor: \"yellow\",\n    title: \"window title: win4\",\n    url:'win4.js'\n});\nwin4.open();\n
{html}", "attachment": [], "flagged": false, "summary": "Android: window, createWindow does not respect title property", "creator": { "name": "hal", "key": "hal", "displayName": "hal", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "environment": null, "comment": { "comments": [ { "id": "128272", "author": { "name": "hal", "key": "hal", "displayName": "hal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Further to this, the is some unintuitive behaviour in relation\nto setting the title after creation.

\n

If it is set after the window is opened, the title\nis displayed:
\nIf the title is set before the window is opened, the title\nis not displayed.

\n

title is displayed:

\n
\nvar win1 = Ti.UI.createWindow({\n    backgroundColor: \"red\",\n    exitOnClose: true\n});\nwin1.open();\nwin1.title = \"window title: win1\";\n
\n

title not displayed:

\n
\nvar win1 = Ti.UI.createWindow({\n    backgroundColor: \"red\",\n    exitOnClose: true\n});\nwin1.title = \"window title: win1\";\nwin1.open();\n
{html}", "updateAuthor": { "name": "hal", "key": "hal", "displayName": "hal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:17:45.000+0000", "updated": "2011-04-15T03:17:45.000+0000" }, { "id": "128273", "author": { "name": "hal", "key": "hal", "displayName": "hal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Possibly, ticket #2786 is related to this post.

{html}", "updateAuthor": { "name": "hal", "key": "hal", "displayName": "hal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:17:45.000+0000", "updated": "2011-04-15T03:17:45.000+0000" }, { "id": "421571", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as there has been no input for the last 6 years. Any problems, please file a new ticket.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-06-08T23:19:56.000+0000", "updated": "2017-06-08T23:19:56.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }