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

Windows: Unexpected layout for second UI element in a View

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: Release 6.1.0
    • Fix Version/s: Release 6.2.0
    • Component/s: Windows
    • Labels:
      None
    • Environment:

      Ti SDK: 6.1.1.v20170614134051
      Appc Core: 6.2.2
      Appc NPM: 4.2.9
      Lumia 550 10.0
      10.0 ws-local

    • Story Points:
      5
    • Sprint:
      2017 Sprint 15 SDK

      Description

      Description

      With the below code, the second TextField does not stretch the width of the view as expected, commenting left or right on the first TextField will make it stretch, this occurs for all UI elements

      var _window = Ti.UI.createWindow();
      var txtUsername = Ti.UI.createTextField({
          top: 50,
          left: 10,
          right: 10,
          hintText: 'Username'
      });
      var txtPassword = Ti.UI.createTextField({
          top: 150,
          left: 10,
          right: 10,
          hintText: 'Password'
      });
      var view = Ti.UI.createView({
          height: 480,
          width: 320,
          borderColor: 'green',
          borderWidth: 5,
          backgroundColor: 'red'
      });
      view.add(txtPassword)
      view.add(txtUsername);
      _window.add(view);
      _window.open();
      

      Steps to reproduce
      1. Add the above to an existing app.js
      2. Build for a windows target
      Actual

      Second TextField does not stretch the width of the view

      Expected

      Second TextField should stretch the width of the view

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                kiguchi Kota Iguchi
                Reporter:
                eharris Ewan Harris
                Reviewer:
                Gary Mathews
                Tester:
                Ewan Harris
              • Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Source Code