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

Windows: Elements inside a ScrollView are centered.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: None
    • Resolution: Duplicate
    • Affects Version/s: Release 5.3.0
    • Fix Version/s: None
    • Component/s: Windows
    • Labels:
    • Environment:

      Android emulator
      Windows Simulator
      Windows 10
      Studio: 4.6.0.201605160952
      Ti SDK: 5.3.0.v20160516040258
      Appc NPM: 4.2.5-5
      App CLI: 5.3.0-45
      Node v0.12.7

      Description

      Elements inside a ScrollView are always centered.

      Steps to reproduce:

      1. Use the app.js below.

      app.js

      var win = Ti.UI.createWindow({ backgroundColor: 'green' });
       
      var scrollView = Ti.UI.createScrollView({
          layout: "vertical",
          backgroundColor: 'orange',
          top: 0,
      });
       
      var view = Ti.UI.createView({
          backgroundColor: 'yellow',
          top: 10,
          left: 10,
          height: Ti.UI.SIZE,
          width: Ti.UI.SIZE,
      });
       
      var label = Ti.UI.createLabel({
          left: 10,
          right: 10,
          color: "blue",
          text: "this is test text"
      });
       
      view.add(label);
       
      scrollView.add(view);
      win.add(scrollView);
      win.open();
      

      Actual :

      Expected:

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                gmathews Gary Mathews
                Reporter:
                jlongton Josh Longton
              • Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Source Code