{ "id": "143676", "key": "TIMOB-18477", "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": null, "resolutiondate": null, "created": "2015-01-29T11:12:45.000+0000", "priority": null, "labels": [ "ios", "ipad", "optiondialog", "popover" ], "versions": [ { "id": "16704", "description": "Release 3.5.0", "name": "Release 3.5.0", "archived": false, "released": true, "releaseDate": "2015-01-13" } ], "issuelinks": [ { "id": "45264", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "142016", "key": "TIMOB-18281", "fields": { "summary": "iOS: Popover with OptionDialog does not dismiss when option dialog is open", "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": "None", "id": "6" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "45263", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "143677", "key": "TIMOB-18489", "fields": { "summary": "OptionDialogs have no way to specify the context window", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "priority": { "name": "Critical", "id": "1" }, "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } } ], "assignee": null, "updated": "2018-02-28T19:55:09.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "When a Popover is opened and attached to one of the window’s {{rightNavItems}} and an OptionDialog is opened, the OptionDialog is opened *inside* the Popover. This does not happen if you open *another OptionDialog* without closing the one inside the Popover.\r\n\r\nh2. Steps\r\n\r\n# Click on \"options\"\r\n# Click on \"popover\"\r\n# Click on \"options\"\r\n# Click on \"options\" again\r\n# Click on \"options\" a third time\r\n\r\nh2. Expected results\r\n\r\n# the OptionDialog opens (correctly attached to the \"options\" button)\r\n# the Popover opens\r\n# *another* OptionDialog (correctly attached) opens *on top* of the Popover\r\n# the second OptionDialog *closes*\r\n# *another* OptionDialog (correctly attached) opens *on top* of the Popover\r\n\r\nh2. Actual result\r\n\r\n# the OptionDialog opens (correctly attached to the \"options\" button)\r\n# the Popover opens\r\n# another OptionDialog opens *inside* the Popover, as a modal iPhone-esque OptionDialog\r\n# another OptionDialog opens (correctly attached to the \"options\" button)\r\n# the last OptionDialog closes\r\n\r\nh2. Attached Code\r\n\r\n{code:javascript}\r\nvar popoverButton = Ti.UI.createButton({ title: 'popover' });\r\nvar optionsButton = Ti.UI.createButton({ title: 'options' });\r\n\r\nvar window = Ti.UI.createWindow({\r\n\tbackgroundColor: 'gray',\r\n\trightNavButtons: [ popoverButton, optionsButton ]\r\n});\r\n\r\nvar navWindow = Ti.UI.iOS.createNavigationWindow({\r\n\twindow: window\r\n});\r\n\r\noptionsButton.addEventListener('click', function () {\r\n\tvar options = Ti.UI.createOptionDialog({\r\n\t\ttitle: 'Options',\r\n\t\toptions: [ 'A', 'B', 'C' ]\r\n\t});\r\n\r\n\toptions.show({ view: optionsButton });\r\n});\r\n\r\npopoverButton.addEventListener('click', function () {\r\n\tvar contentView = Ti.UI.createLabel({\r\n\t\ttext: 'this is the content',\r\n\t\twidth: 300,\r\n\t\theight: 300,\r\n\t\ttextAlign: Ti.UI.TEXT_ALIGNMENT_CENTER\r\n\t});\r\n\r\n\tvar popover = Ti.UI.iPad.createPopover({\r\n\t\tcontentView: contentView\r\n\t});\r\n\r\n\tpopover.show({ view: popoverButton });\r\n});\r\n\r\nnavWindow.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "IOS: A Popover will swallow any OptionDialog created", "creator": { "name": "yuchi", "key": "yuchi", "displayName": "Pier Paolo Ramon", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "yuchi", "key": "yuchi", "displayName": "Pier Paolo Ramon", "active": true, "timeZone": "Europe/Berlin" }, "environment": "SDK 3.5.0, iPad", "comment": { "comments": [ { "id": "341145", "author": { "name": "yuchi", "key": "yuchi", "displayName": "Pier Paolo Ramon", "active": true, "timeZone": "Europe/Berlin" }, "body": "This is similar in scope to TIMOB-18281, but actually the issue is different.\r\n\r\nA solution to TC-5261 could improve the situation.", "updateAuthor": { "name": "yuchi", "key": "yuchi", "displayName": "Pier Paolo Ramon", "active": true, "timeZone": "Europe/Berlin" }, "created": "2015-01-29T11:22:57.000+0000", "updated": "2015-01-29T11:22:57.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }