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

Windows: Labels in a tableviewrow are not sized correctly

    Details

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

      OS: Microsoft Windows 10 Pro 10.0.14393
      Appc core: 6.0.0-69
      Appc NPM: 4.2.8-9
      Ti SDK: 6.0.0.v20161109075403

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

      Description

      Description

      When adding a label to a tableviewrow the label does not get sized correctly for the text

      var _window = Ti.UI.createWindow();
      var row1 = Ti.UI.createTableViewRow({
          // height:'auto',
          height: Ti.UI.SIZE
       
      });
      var label1 = Ti.UI.createLabel({
          // height:'auto',
          top: 0,
          height: Ti.UI.SIZE,
          text: 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.'
      });
       
      row1.add(label1);
       
      var row2 = Ti.UI.createTableViewRow({
          // height:'auto',
          height: Ti.UI.SIZE
      });
      var label2 = Ti.UI.createLabel({
          // height:'auto',
          height: Ti.UI.SIZE,
          top: 0,
          text: 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.'
      });
       
      row2.add(label2);
       
       
      var table = Ti.UI.createTableView({
          index: [{
              index: 0,
              title: 'a'
          }, {
              index: 1,
              title: 'b'
          }],
          data: [row1, row2]
      });
       
      _window.add(table);
      _window.open();
      

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

      Label is not correctly sized

      Expected result

      Label should be correctly sized

        Attachments

        1. 6.0.0.GA.png
          6.0.0.GA.png
          57 kB
        2. 6.1.0.v20170209111025.png
          6.1.0.v20170209111025.png
          62 kB
        3. ios.png
          ios.png
          144 kB
        4. windows.png
          windows.png
          41 kB

          Issue Links

            Activity

              People

              • Assignee:
                kiguchi Kota Iguchi (Inactive)
                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-10267
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Integration