Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-17719

iOS8: Alert dialog does not consider window orientation modes when keyboard is displayed

    Details

    • Story Points:
      3
    • Sprint:
      2014 Sprint 20 SDK

      Description

      Issue

      When the alert dialog is called with an input text style and a orientation mode restricted to Portrait and the device is rotated to landscape the alertDialog keeps rotating but only if the keyboard is being displayed, if the keyboard is hiding the alert will not rotate.

      Step to reproduce

      1. Run the test code
      2. Tap on the "Welcome to Titanium" for the alert to be displayed
      3. Try to rotate the device.
      4. Go back to portrait and tap on the input text box.
      5. Try to rotate the device

      Expected Results

      The alert will not rotate and remain in portrait mode.

      Actual results

      When the keyboard is hidden the alert will not rotate, once the keyboard is displayed the alert will begin to rotate

      Test Code

      var win = Ti.UI.createWindow({
      	orientationModes: [Ti.UI.PORTRAIT],
      	backgroundColor:'#ffffff'
      });
       
      	var label = Ti.UI.createLabel({
      		color:'#000000',
      		text:String.format(L('welcome'),'Titanium'),
      		height:'auto',
      		width:'auto'
      	});
       
      	label.addEventListener('click', function(e) {
      	    var alertDialog = Ti.UI.createAlertDialog({
                  title: "Alert Dialog",
                  message: "akjskajksa skajskajksjas akjskajskjaks aksjakjsa aksjakjsa aksjakjsa aksjakjsa aksjakjsa aksjakjsa aksjakjsa",
                  style: Ti.UI.iPhone.AlertDialogStyle.PLAIN_TEXT_INPUT
              });
       
              alertDialog.show();
      	});
       
      win.add(label);
      win.open();
      

        Attachments

        1. 4sLandscape.PNG
          4sLandscape.PNG
          75 kB
        2. 4sPortrait.PNG
          4sPortrait.PNG
          79 kB
        3. iPadRotated.PNG
          iPadRotated.PNG
          186 kB

          Issue Links

            Activity

              People

              • Assignee:
                vduggal Vishal Duggal (Inactive)
                Reporter:
                mcota Marco Cota (Inactive)
                Reviewer:
                Jon Alter
                Tester:
                Olga Romero
              • Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-19228
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Integration