Uploaded image for project: 'Alloy'
  1. Alloy
  2. ALOY-1486

iOS, Android: Global styles is not overridden by local styles for orientationModes.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: Release 5.2.0, Release 5.2.1
    • Fix Version/s: Release 5.4.0, alloy 1.8.5
    • Component/s: Titanium SDK
    • Environment:
    • Story Points:
      5
    • Sprint:
      2016 Sprint 08 Tooling

      Description

      Description

      If we set orientationModes on window in app.tss file portrait, landscape both and any individual tss file only portrait then portrait mode does not work for individual tss.

      Steps to reproduce

      1. Just create an alloy project.
      2. Replace this app.tss and index.tss file,
      3. Run this code in device or emulator.
      4. Rotate device.
      5. It does not stop.

      actual behaviour

      If device rotate, the app orientation change.

      Expected behaviour

      Since orientation Modes "PORTRAIT" for the index.tss file so it should be always portrait.

      app.tss

      "Window": {
        orientationModes: [Ti.UI.PORTRAIT,Ti.UI.LANDSCAPE_LEFT,Ti.UI.LANDSCAPE_RIGHT],
        backgroundColor: "red"
      }
      

      index.tss

      "Window": {
      	orientationModes: [Titanium.UI.PORTRAIT],
      	backgroundColor: "blue"
      }
      
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                fmiao Feon Sua Xin Miao
                Reporter:
                morahman Motiur Rahman
                Reviewer:
                Chee Kiat Ng (Inactive)
              • Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                    Git Integration