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

Windows: TableViewRow defaults to horizontal layout

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: Release 6.1.0, Release 6.1.1
    • Fix Version/s: Release 7.0.0
    • Component/s: Windows
    • Labels:
      None
    • Environment:

      Ti SDK: 6.1.1.v20170619143158, 6.1.0.GA
      Appc Core: 6.2.2
      Appc NPM: 4.2.9
      Lumia 550 10.0
      10.0 ws-local

    • Story Points:
      5
    • Sprint:
      2017 Sprint 22 SDK, 2017 Sprint 23 SDK

      Description

      TableViewRow defaults to horizontal on Windows, this is evidenced by the below code where the labels are added next to the last label added rather than at the right hand side of the TableViewRow, and row.layout logging horizontal

      var _window = Ti.UI.createWindow();
      var row = Ti.UI.createTableViewRow({
          width: 300,
          height: 40
      });
      var nameLabel = Titanium.UI.createLabel({
          text: 'Title',
          left: 10
      });
      row.add(nameLabel);
      var tableView = Ti.UI.createTableView({
          top: 0,
          width: 300,
          height: Ti.UI.SIZE,
          data: [row]
      });
      var addButton = Ti.UI.createButton({
          title: 'Add Label',
          width: 200,
          height: 100
      });
       
      addButton.addEventListener('click', function() {
          var valueLabel1 = Ti.UI.createLabel({
              text: 'New Label'
          });
          row.add(valueLabel1);
      });
      _window.add(tableView);
      _window.add(addButton);
      console.log(row.layout);
      _window.open();
      

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

      Label is added to the right of the last Label

      Expected

      Labels should be added at the far end of the TableViewRow

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Source Code