{ "id": "125638", "key": "TIMOB-16346", "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": "15922", "description": "2014 Sprint 03", "name": "2014 Sprint 03", "archived": true, "released": true, "releaseDate": "2014-02-14" }, { "id": "15923", "description": "2014 Sprint 03 API", "name": "2014 Sprint 03 API", "archived": true, "released": true, "releaseDate": "2014-02-14" } ], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2014-02-03T20:12:30.000+0000", "created": "2014-01-30T18:27:05.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "supportTeam" ], "versions": [ { "id": "15856", "description": "Release 3.2.1", "name": "Release 3.2.1", "archived": false, "released": true, "releaseDate": "2014-02-10" } ], "issuelinks": [], "assignee": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-03T21:40:59.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "h6.Issue description\r\nWe just observed that in iPad the option dialog doesn't show the last option where as its working properly in iPhone. \r\n\r\nh6.Snippet code\r\n{code}\r\nTi.UI.setBackgroundColor('white');\r\n var win = Ti.UI.createWindow({\r\n title: 'Click window to test',\r\n backgroundColor: 'white',\r\n exitOnClose: true,\r\n fullscreen: false\r\n});\r\n\r\nvar opts = {\r\n title: 'Delete File?',\r\n cancel: 2\r\n};\r\n\r\nvar isAndroid = Ti.Platform.osname == 'android';\r\n\r\nif(isAndroid){\r\n opts.options = ['Confirm', 'Cancel'];\r\n opts.buttonNames = ['Help'];\r\n} else {\r\n opts.options = ['Confirm', 'Help', 'Cancel'];\r\n}\r\n\r\nwin.addEventListener('click', function(e){\r\n var dialog = Ti.UI.createOptionDialog(opts).show();\r\n});\r\nwin.open();\r\n{code}\r\n\r\nh6.Appcelerator docs\r\nhttp://docs.appcelerator.com/titanium/latest/#!/api/Titanium.UI.OptionDialog-property-cancel\r\n\r\nh6.Environment\r\n{quote}\r\negomezmbp:tools egomez$ ti status\r\nTitanium Command-Line Interface, CLI version 3.2.1-beta3, Titanium SDK version 3.2.1.v20140121132444\r\nCopyright (c) 2012-2014, Appcelerator, Inc. All Rights Reserved.\r\n{quote}", "attachment": [], "flagged": false, "summary": "iOS7: OptionDialog last option not visible ", "creator": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "SDK 3.2.1.v20140121132444\r\niOS 7 (iPad simulator)", "comment": { "comments": [ { "id": "290953", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "This is native behavior. Cancel button is not shown on the iPAD. Our documentation already notes it.To get the cancel button to show set cancel to -1 on iPAD", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-02-03T20:12:30.000+0000", "updated": "2014-02-03T20:14:59.000+0000" }, { "id": "408937", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing as invalid.", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-03-03T21:40:59.000+0000", "updated": "2017-03-03T21:40:59.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }