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

Windows: Wrong height for TableViewRow with Label

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: Release 7.5.0
    • Fix Version/s: Release 8.1.0
    • Component/s: Windows
    • Labels:
      None
    • Story Points:
      8
    • Sprint:
      2019 Sprint 1, 2019 Sprint 3, 2019 Sprint 5

      Description

      The height of first TableView row is rendered too big compared to other rows when row has a Label with relative width (e.g. "80%").

      var win = Ti.UI.createWindow();
      var tableView = Ti.UI.createTableView({
          width: Ti.UI.FILL,
          height: Ti.UI.FILL,
          data: [createRow(), createRow(), createRow()]
      });
      win.add(tableView);
       
      function createRow() {
       
          var uid = (new Date()).getTime();
       
          var row = Ti.UI.createTableViewRow({
              borderWidth: 1, borderColor: '#F0F',
          });
       
          var label1 = Ti.UI.createLabel({
              width: '80%',
              text: 'Test 1 ' + uid,
              borderWidth: 1, borderColor: '#FF0'
          });
          row.add(label1);
       
          return row;
      }
       
      win.open();
      

      Expected: The height of first row should have same height with other rows.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                kiguchi Kota Iguchi
                Reporter:
                kiguchi Kota Iguchi
                Reviewer:
                Gary Mathews
                Tester:
                Samir Mohammed
              • Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Source Code