{ "id": "149606", "key": "TIMOB-19208", "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": "16925", "description": "WatchKit Support--all going into 5.0 now", "name": "Release 5.0.0", "archived": true, "released": true, "releaseDate": "2015-09-16" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2015-07-16T07:43:04.000+0000", "created": "2015-07-10T09:58:08.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [ { "id": "16723", "description": "Windows Platform Support, ListView updates, Vector overlays in maps", "name": "Release 4.1.0", "archived": false, "released": true, "releaseDate": "2015-07-08" } ], "issuelinks": [ { "id": "48362", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "149018", "key": "TIMOB-19057", "fields": { "summary": "Windows: Test Todo list sample", "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": "Medium", "id": "3" }, "issuetype": { "id": "7", "description": "gh.issue.story.desc", "name": "Story", "subtask": false } } } } ], "assignee": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2015-08-04T16:07:07.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": "12642", "name": "Windows", "description": "Windows authoring support" } ], "description": "{{Window.CommandBar}} which is associated with {{Ti.UI.Window}} disappears when creating new {{Window}} from {{Tab}}. For example in following sample code the CommandBar which is associated with {{win1}} disappears after closing overlapping Window. It's ok to hide it when overlapping Window is active, but it should restored when overlaping Window is closed.\r\n\r\n{code}\r\nvar tabGroup = Titanium.UI.createTabGroup();\r\n\r\nvar win1 = Titanium.UI.createWindow({\r\n title: 'Tab 1',\r\n backgroundColor: '#fff'\r\n});\r\nvar tab1 = Titanium.UI.createTab({\r\n icon: 'KS_nav_views.png',\r\n title: 'Tab 1',\r\n window: win1\r\n});\r\n\r\nvar label1 = Titanium.UI.createLabel({\r\n color: '#999',\r\n text: 'I am Window 1',\r\n font: { fontSize: 20, fontFamily: 'Helvetica Neue' },\r\n textAlign: 'center',\r\n width: 'auto'\r\n});\r\n\r\nwin1.add(label1);\r\n\r\nvar platform = Ti.Platform.osname;\r\nif (platform === 'windowsphone' || platform === 'windowsstore') {\r\n var commandBar1 = Ti.UI.Windows.createCommandBar();\r\n var addButton = Ti.UI.Windows.createAppBarButton({ icon: Ti.UI.Windows.SystemIcon.ADD });\r\n addButton.addEventListener('click', function () {\r\n var window = Ti.UI.createWindow({ backgroundColor: 'green' });\r\n var closeButton = Ti.UI.createButton({ title: 'Close' });\r\n closeButton.addEventListener('click', function () {\r\n window.close();\r\n });\r\n window.add(closeButton);\r\n window.open();\r\n });\r\n commandBar1.items = [addButton];\r\n win1.add(commandBar1);\r\n}\r\n\r\ntabGroup.addTab(tab1);\r\n\r\ntabGroup.open();\r\n{code}\r\n", "attachment": [], "flagged": false, "summary": "Windows: CommandBar disappears after closing overlapping Window", "creator": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "environment": null, "closedSprints": [ { "id": 443, "state": "closed", "name": "2015 Sprint 14 Windows", "startDate": "2015-07-06T04:01:52.896Z", "endDate": "2015-07-19T03:59:00.000Z", "completeDate": "2015-07-20T22:18:14.505Z", "originBoardId": 144 } ], "comment": { "comments": [ { "id": "357632", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "https://github.com/appcelerator/titanium_mobile_windows/pull/370", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-07-14T09:37:16.000+0000", "updated": "2015-07-14T09:37:16.000+0000" }, { "id": "358396", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix.\r\n\r\nThe commandbar does not disappear.\r\n\r\nClosing.\r\n\r\nEnvironment:\r\nAppc Studio: 4.1.1.201507141126\r\nTi SDK: 4.2.0.v20150724170431\r\nTi CLI: 4.0.1\r\nAlloy: 1.6.2\r\nWindows: 8.1 Enterprise 64-bit\r\nAPPC NPM: 4.1.0\r\nAPPC CLI: 4.1.2\r\nDevice: Nokia Lumia 928 - Windows Phone 8.1\r\nWindows emulator : 8.1", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-07-28T00:04:42.000+0000", "updated": "2015-07-28T00:04:42.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }