{ "id": "119462", "key": "ALOY-818", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false }, "project": { "id": "11113", "key": "ALOY", "name": "Alloy", "projectCategory": { "id": "10400", "description": "Tools for developing applications", "name": "Tooling" } }, "fixVersions": [ { "id": "15403", "description": "Alloy 1.3.0", "name": "Alloy 1.3.0", "archived": false, "released": true, "releaseDate": "2013-12-20" }, { "id": "15602", "description": "Alloy 1.2.2", "name": "Alloy 1.2.2", "archived": false, "released": true, "releaseDate": "2013-09-18" }, { "id": "15670", "description": "2013 Sprint 18", "name": "2013 Sprint 18", "archived": true, "released": true, "releaseDate": "2013-09-06" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-09-04T23:35:46.000+0000", "created": "2013-09-04T18:40:05.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [ { "id": "15403", "description": "Alloy 1.3.0", "name": "Alloy 1.3.0", "archived": false, "released": true, "releaseDate": "2013-12-20" }, { "id": "15570", "description": "Alloy 1.2.1", "name": "Alloy 1.2.1", "archived": false, "released": true, "releaseDate": "2013-08-27" } ], "issuelinks": [ { "id": "31551", "type": { "id": "10000", "name": "Blocks", "inward": "is blocked by", "outward": "blocks" }, "outwardIssue": { "id": "119400", "key": "ALOY-815", "fields": { "summary": "iOS 7: add 'navigationWindow' API to XML markup", "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": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } } ], "assignee": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2013-09-06T20:57:46.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": "12332", "name": "Titanium SDK", "description": "Any integration or issues with the TiSDK" }, { "id": "12326", "name": "XML", "description": "View XML and parsing" } ], "description": "h5. Description\r\n\r\n iOS Ui object should also be used inside a object for iPad.\r\n\r\nh5. Sample\r\n\r\nIn classic Titanium projects, this is showing two NavigationWindows inside a SplitView object (one as master view, the other as detail view)\r\n{code}\r\nvar win1 = Ti.UI.createWindow({\r\n\tbackgroundColor:'gray'\r\n});\r\n\r\nvar label1 = Ti.UI.createLabel({\r\n\ttext:'detail view',\r\n\tcolor:'orange',\r\n\tfont:{\r\n\t\tfontSize:'24dp'\r\n\t},\r\n\tfontWeight:'bold'\r\n});\r\n\r\nwin1.add(label1);\r\n\r\n\r\nvar win2 = Ti.UI.createWindow({\r\n\tbackgroundColor:'purple'\r\n});\r\n\r\nvar label2 = Ti.UI.createLabel({\r\n\ttext:'master view',\r\n\tcolor:'orange',\r\n\tfont:{\r\n\t\tfontSize:'24dp'\r\n\t},\r\n\tfontWeight:'bold'\r\n});\r\n\r\nwin2.add(label2);\r\n\r\n\r\n\r\nvar nav = Ti.UI.iOS.createNavigationWindow({\r\n window: win1\r\n});\r\n\r\nvar masterView = Ti.UI.iOS.createNavigationWindow({\r\n window: win2\r\n});\r\n\r\nvar splitwin = Ti.UI.iPad.createSplitWindow({\r\n detailView: nav,\r\n masterView: masterView\r\n});\r\n\r\nsplitwin.addEventListener('visible',function(e){\r\n if (e.view == 'detail'){\r\n e.button.title = \"Master\";\r\n win1.leftNavButton = e.button;\r\n } else if (e.view == 'master'){\r\n win1.leftNavButton = null;\r\n }\r\n});\r\n\r\nsplitwin.open();\r\n{code}\r\n\r\n\r\nh5. Alloy sample\r\nOn Alloy, this sample code is throwing the following exception when run:\r\n{code}\r\n[ERROR] : SplitWindow must have exactly 2 children that are Windows, a master and detail respectively\r\n[ERROR] : Alloy compiler failed\r\n{code}\r\n\r\nindex.xml\r\n{code}\r\n\r\n \r\n \r\n \r\n \t\r\n \t \r\n \t\r\n \t\t \r\n\r\n \r\n \r\n \t\r\n \t \r\n \t\t\r\n \r\n \r\n\r\n{code}\r\n", "attachment": [], "flagged": false, "summary": "iOS7: NavigationWindow should work also inside Ti.UI.iPad.SplitWindow", "creator": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Alloy 1.2.1 from 1_2_X branch\r\nAlloy 1.3.0 from master branch\r\nTiSDK 3.1.3.v20130903160805", "comment": { "comments": [ { "id": "269634", "author": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR (master): https://github.com/appcelerator/alloy/pull/240\r\ncommit (1_2_X): https://github.com/appcelerator/alloy/commit/c57e5ad31a4651b6f4e9b7c444023c5d79ea44b9\r\ntest apps:\r\n# https://github.com/appcelerator/alloy/tree/master/test/apps/ui/splitwindow\r\n# https://github.com/appcelerator/alloy/tree/master/test/apps/testing/ALOY-818\r\n\r\nfunctional testing (iPad only):\r\n\r\nh3. ui/splitwindow\r\n\r\n# Run the app for ipad and ensure it functions as it always has. This is simply to ensure no regressions in the simplest cases\r\n# Change the in the index.xml to a