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

iOS: Alert gets moved if on screen when application error thrown

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: Release 3.5.0, Release 4.0.0
    • Fix Version/s: Release 3.5.0, Release 4.0.0
    • Component/s: iOS
    • Environment:

      Mac OSX 10.10.1
      Appcelerator Studio, build: 3.4.1.201410281743
      Titanium SDK build: 3.5.0.v20141203160911, 3.6.0.v20141203164915
      Titanium CLI, build: 3.4.1
      Alloy: 1.5.1
      Xcode 6.1.1
      iPhone 6 Plus (8.1)

      Description

      Description

      If an alert is on screen when the 'red screen' is thrown on device, when the screen is dismissed the alert appears in the upper left hand corner of the screen, as shown in the screenshot 3.5.0.

      This is a regression as when using 3.4.1 and running the same code the behaviour is different. The alert is displayed on top of the 'red screen' and always stays centred, as shown in the screenshot 3.4.1

      Notes

      I am investigating to see if there are any other actions which cause this behaviour.
      The alert can still be dismissed from it's position as the bottom can still be tapped

      Titanium.UI.setBackgroundColor('#fff');  
      var win = Titanium.UI.createWindow({title: 'test'});  
      alert('Will I move or not!!');  
      win.foobar();
      win.open();
      

      Steps To Reproduce

      1. Add the code above to an existing project build and run on an iOS device using 3.5.0 SDK

      Actual Result

      The alert will not be displayed on top of the 'red screen', when the 'red screen' is dismissed the alert is positioned at the top left of the screen.

      Expected Result

      The alert should be the top item in the window and should always be centred

        Attachments

          Activity

            People

            • Assignee:
              vduggal Vishal Duggal (Inactive)
              Reporter:
              eharris Ewan Harris
              Reviewer:
              Jon Alter
              Tester:
              Ewan Harris
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Integration