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

Windows: TableViewRow does not fill size of TableView

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: Release 6.0.4, Release 6.1.2, Release 7.0.0, Release 6.2.0
    • Fix Version/s: Release 6.3.0
    • Component/s: Windows
    • Labels:
      None
    • Environment:

      Ti SDk 6.0.4.GA, 6.1.2.GA, 6.2.0.v20170912203804, 7.0.0.v20170906135653

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

      Description

      Description

      When using Ti.UI.FILL (or setting width to a suitable number), a TableViewRow will never fill the size of the TableView and there will be padding on either side of the TableViewRow.

      Code has border to attempt to highlight where the TableViewRow ends, you will notice TIMOB-24855 in this test case too

      I tried playing around with the XAML ListView example and that seems to always go to the edge so I don't think it's a platform limitation

      var _window = Ti.UI.createWindow({ backgroundColor: 'green' });
      var row = Titanium.UI.createTableViewRow({
          width: Ti.UI.FILL,
          height: 150,
          backgroundColor: 'blue',
          borderWidth: 4,
          borderColor: 'pink'
       
      });
      var data = [row];
      var table = Titanium.UI.createTableView({
          width: Ti.UI.FILL,
          data: data,
          borderWidth: 4,
          borderColor: 'blue',
          width: 600
      });
      _window.add(table);
      _window.open()
      

      Steps to reproduce
      1. Add above code to an existing app.js and build for Windows
      Actual

      TableViewRow has padding on left and right, not filling TableView

      Expected

      TableViewRow should size to fit the TableView (to edge of the blue border)

        Attachments

          Issue Links

            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-11137
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Source Code