{ "id": "62076", "key": "TIMOB-1444", "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": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2017-07-31T22:03:19.000+0000", "created": "2011-04-15T02:53:01.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "defect", "ios", "ipad", "reported-1.6.0", "rplist" ], "versions": [], "issuelinks": [ { "id": "15529", "type": { "id": "10011", "name": "Includes", "inward": "is included by", "outward": "includes" }, "inwardIssue": { "id": "86488", "key": "TIMOB-7656", "fields": { "summary": "iOS: include \"hide\" method to the OptionDialog", "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": "High", "id": "2" }, "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } }, { "id": "15408", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "86488", "key": "TIMOB-7656", "fields": { "summary": "iOS: include \"hide\" method to the OptionDialog", "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": "High", "id": "2" }, "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } } ], "assignee": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-07-31T22:10:52.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": "{html}

Just created a new two button optiondialog on an ipad\r\nwebview.

\r\n

when it is shown on the page only the first of the options is\r\nshown

\r\n

var dialog = Titanium.UI.createOptionDialog({

\r\n
\r\n    title: 'you have options',\r\n    options: ['option 1','option 2'],\r\n    destructive:0,\r\n    cancel:1\r\n});\r\n
\r\n

dialog.show();

\r\n

if you place a third option the resulting optiondialog has 1 and\r\na half buttons,

\r\n

var dialog = Titanium.UI.createOptionDialog({

\r\n
\r\n    title: 'you have options',\r\n    options: ['Option 1','Option 2',''],\r\n    destructive:0,\r\n    cancel:1\r\n});\r\n
\r\n

dialog.show();

\r\n

images attached for your convenience

{html}", "attachment": [ { "id": "17993", "filename": "2options.png", "author": { "name": "ravenlife", "key": "ravenlife", "displayName": "RavenLife", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:53:02.000+0000", "size": 22297, "mimeType": "image/png" }, { "id": "17994", "filename": "3options.png", "author": { "name": "ravenlife", "key": "ravenlife", "displayName": "RavenLife", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:53:02.000+0000", "size": 25604, "mimeType": "image/png" } ], "flagged": false, "summary": "iPad - OptionsDialog - fails to display last option / height bug", "creator": { "name": "ravenlife", "key": "ravenlife", "displayName": "RavenLife", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "ravenlife", "key": "ravenlife", "displayName": "RavenLife", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "125725", "author": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "body": "{html}

Additional Details

\n

If you remove the \"cancel: 1\" property, both options will be\nshown.

\n
\nTi.UI.createWindow({backgroundColor: '#fff'}).open();\n\nTitanium.UI.createOptionDialog({\n    title: 'Hello',\n    options: ['Option 1','Option 2']\n}).show();\n
\n

Associated Helpdesk Ticket

\n

http://developer.appcelerator.com/helpdesk/view/68711

{html}", "updateAuthor": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "created": "2011-04-15T02:53:02.000+0000", "updated": "2011-04-15T02:53:02.000+0000" }, { "id": "184274", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This actually is due to the native iPad design. Will be updating documentation to further clarify what happens.", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-02-24T19:33:15.000+0000", "updated": "2012-02-24T19:33:15.000+0000" }, { "id": "185038", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Github pull #1454 updates the documentation as mentioned:\r\n{quote}\r\nOn iPad, the cancel button *must* be -1 or the last button. If the cancel button is used (IE, not -1) then the cancel button will be removed from option dialog. As of 1.9, this value will be used for the index when click is fired via outside taps or hide, even using -1 if no cancel button was provided.\r\n{quote}", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-05T10:53:13.000+0000", "updated": "2012-03-05T10:53:13.000+0000" }, { "id": "185039", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Documentation in 7656 solves this issue.", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-05T10:54:29.000+0000", "updated": "2012-03-05T10:54:29.000+0000" }, { "id": "185040", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "See fix for TIMOB-7656.", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-05T10:56:09.000+0000", "updated": "2012-03-05T10:56:09.000+0000" }, { "id": "194070", "author": { "name": "nchhabra", "key": "nchhabra", "displayName": "Neha Chhabra", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Tested with Titanium SDK: 2.0.2.v20120505151714\r\nTested with Titanium Studio: 2.0.2.201205041518\r\nPlatform & version: iOS 5.1\r\nDevice Details: iPad2\r\nHost Operating System: OSX 10.7.3\r\n\r\nFor the Test: KitchenSink>Base UI>Views>Options Dialog: Click on show dialog 1 button brings up a dialog with only 2 options instead of three (same behavior as the test above). Similarly,on click of Modify and show dialog button, it brings up only 3 options instead of four.", "updateAuthor": { "name": "nchhabra", "key": "nchhabra", "displayName": "Neha Chhabra", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2012-05-08T05:22:52.000+0000", "updated": "2012-05-08T05:22:52.000+0000" }, { "id": "199674", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Any reason this was reopened without explanation? If not, will be re-resolving this as duplicate.", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-21T16:30:22.000+0000", "updated": "2012-06-21T16:30:22.000+0000" }, { "id": "199846", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Needs a doc update for iPAD behavior.\r\nSee TIDOC-684", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-06-22T16:21:08.000+0000", "updated": "2012-06-22T16:21:08.000+0000" }, { "id": "216962", "author": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Environment used for verification -\r\nTested with Titanium SDK: 2.2.0.v20120828153312\r\nTested with Titanium  Studio: 2.1.2.201208201549\r\nDevice - iOS 5.1 simulator\r\nMachine OS - MAC 10.8", "updateAuthor": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-29T23:39:49.000+0000", "updated": "2012-08-29T23:39:49.000+0000" }, { "id": "223401", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi Blain,\nThis issue still exists on iPad.\nI am reopening this bug.\nTested on:\nTitanium Studio, build: 3.0.0.201210090117\nTitanium SDK, build: 3.0.0.v20121012174449\nDevices:\niPad3 ios 5.1\niPad3 ios 6.0\n", "updateAuthor": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-13T17:47:37.000+0000", "updated": "2012-10-13T17:47:37.000+0000" }, { "id": "425134", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing due to inactivity. If this issue still exists, please raise a new ticket.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-07-31T22:03:19.000+0000", "updated": "2017-07-31T22:03:19.000+0000" }, { "id": "425137", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing due to inactivity. If this issue still exists, please raise a new ticket.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-07-31T22:10:52.000+0000", "updated": "2017-07-31T22:10:52.000+0000" } ], "maxResults": 12, "total": 12, "startAt": 0 } } }