Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-18455] iPad: OptionDialog shows not in center of display

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2015-03-10T22:01:19.000+0000
Affected Version/sRelease 3.5.0
Fix Version/sRelease 3.5.1, Release 4.0.0
ComponentsiOS
Labelsipad, optiondialog
ReporterShawn Lan
AssigneeIngo Muschenetz
Created2015-01-26T21:27:29.000+0000
Updated2015-03-10T22:01:19.000+0000

Description

Starting 3.5.0, show an OptionDialog without specifying view property: 1. Dialog not centered 2. Arrow points to the center of the window. Which looks very weird. Before 3.5.0, the dialog will be centered without an arrow. That is the preferred behavior.

Comments

  1. Shuo Liang 2015-01-27

    Hi, Please provide the simple test case to reproduce your problem. That will be real helpful to address the problem. Thanks Regards, Shuo
  2. Shawn Lan 2015-01-28

    Just create an option dialog, and call dialog.show() without any parameter. Test it on iPad and you'll see the problem. Thanks.
  3. Shuo Liang 2015-01-28

    Problem can be reproduced on SDK 3.5.0, which works well in SDK 3.4.* Not sure is it IOS change issue, or our SDK issue. Test Case:
       Ti.UI.setBackgroundColor('white');
       var win = Ti.UI.createWindow({
         title: 'Click window to test',
         backgroundColor: 'white',
         exitOnClose: true,
         fullscreen: false
       });
       
       var opts = {
         cancel: 2,
         options: ['Confirm', 'Help', 'Cancel'],
         selectedIndex: 2,
         destructive: 0,
         title: 'Delete File?'
       };
       
       win.addEventListener('click', function(e){
         var dialog = Ti.UI.createOptionDialog(opts).show();
       });
       win.open();
       
  4. nicolomonili 2015-03-09

    I also had this problem, but with SDK 3.5.1 the problem is completely solved
  5. Ingo Muschenetz 2015-03-09

    Resolving based on customer feedback.
  6. Eric Wieber 2015-03-10

    Verified fixed using: Titanium SDK 4.0.0.v20150306095010 Studio 4.0.0.201502171827 CLI 3.4.2 Xcode 6.2 Option dialog is centered and without arrow.

JSON Source