[TIMOB-1444] iPad - OptionsDialog - fails to display last option / height bug
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Won't Fix |
Resolution Date | 2017-07-31T22:03:19.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | iOS |
Labels | defect, ios, ipad, reported-1.6.0, rplist |
Reporter | RavenLife |
Assignee | Eric Merriman |
Created | 2011-04-15T02:53:01.000+0000 |
Updated | 2017-07-31T22:10:52.000+0000 |
Description
Just created a new two button optiondialog on an ipad webview.
when it is shown on the page only the first of the options is shown
var dialog = Titanium.UI.createOptionDialog({
title: 'you have options',
options: ['option 1','option 2'],
destructive:0,
cancel:1
});
dialog.show();
if you place a third option the resulting optiondialog has 1 and a half buttons,
var dialog = Titanium.UI.createOptionDialog({
title: 'you have options',
options: ['Option 1','Option 2',''],
destructive:0,
cancel:1
});
dialog.show();
images attached for your convenience
Attachments
File | Date | Size |
---|---|---|
2options.png | 2011-04-15T02:53:02.000+0000 | 22297 |
3options.png | 2011-04-15T02:53:02.000+0000 | 25604 |
Additional Details
If you remove the "cancel: 1" property, both options will be shown.
Associated Helpdesk Ticket
http://developer.appcelerator.com/helpdesk/view/68711">http://developer.appcelerator.com/helpdesk/view/68711
This actually is due to the native iPad design. Will be updating documentation to further clarify what happens.
Github pull #1454 updates the documentation as mentioned: {quote} On 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. {quote}
Documentation in 7656 solves this issue.
See fix for TIMOB-7656.
Tested with Titanium SDK: 2.0.2.v20120505151714 Tested with Titanium Studio: 2.0.2.201205041518 Platform & version: iOS 5.1 Device Details: iPad2 Host Operating System: OSX 10.7.3 For 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.
Any reason this was reopened without explanation? If not, will be re-resolving this as duplicate.
Needs a doc update for iPAD behavior. See TIDOC-684
Environment used for verification - Tested with Titanium SDK: 2.2.0.v20120828153312 Tested with Titanium Studio: 2.1.2.201208201549 Device - iOS 5.1 simulator Machine OS - MAC 10.8
Hi Blain, This issue still exists on iPad. I am reopening this bug. Tested on: Titanium Studio, build: 3.0.0.201210090117 Titanium SDK, build: 3.0.0.v20121012174449 Devices: iPad3 ios 5.1 iPad3 ios 6.0
Closing due to inactivity. If this issue still exists, please raise a new ticket.
Closing due to inactivity. If this issue still exists, please raise a new ticket.