Uploaded image for project: 'Appcelerator Studio'
  1. Appcelerator Studio
  2. TISTUD-7918

Can't change layout property of view if not set.

    Details

    • Type: Bug
    • Status: Open
    • Priority: Low
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Android
    • Environment:

      OS: Mac OS El Captain
      Appcelerator Studio: 4.4.0
      SDK: 5.1.1GA
      Tested on Android but expecting same behaviour on iOS

      Description

      View is create but layout property is not set:

      {{var container = Ti.UI.createView(

      { height: 50, }

      );}}

      Window is open if it is tried to change layout to 'vertical'
      {{ container.layout = 'vertical'; }}
      or
      {{ container.setLayout('vertical'); }}

      New elements are added.

      Expected behaviour: container will behave same as container created this way
      {{var container = Ti.UI.createView(

      { height: 50, layout: 'vertical' }

      );}}

      Real behaviour: container behave like without layout property set.

        Attachments

          Activity

            People

            • Assignee:
              kkolipaka Kondal Kolipaka (Inactive)
              Reporter:
              CREATIVE KAIZEN CREATIVE KAIZEN
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: