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

Windows: Ti.UI.FILL resizes Label incorrectly

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: Release 6.0.3
    • Fix Version/s: Release 6.1.0
    • Component/s: Windows
    • Labels:
      None
    • Story Points:
      3
    • Sprint:
      2017 Sprint 09 SDK

      Description

      Setting Ti.UI.FILL for Label resizes Label incorrectly.

      Code to reproduce:

      var win = Ti.UI.createWindow({
              backgroundColor: 'green'
          }),
          width_fill_label = Ti.UI.createLabel({
              text: 'I have a width of Ti.UI.FILL',
              textAlign: Titanium.UI.TEXT_ALIGNMENT_CENTER,
              width: Ti.UI.FILL,
              color: 'white',
              backgroundColor: 'purple',
              height: Ti.UI.SIZE,
          });
       
      win.add(width_fill_label);
      win.open();
      

      expected:

      actual:

        Attachments

          Activity

            People

            • Assignee:
              kiguchi Kota Iguchi (Inactive)
              Reporter:
              kiguchi Kota Iguchi (Inactive)
              Reviewer:
              Gary Mathews
              Tester:
              Samir Mohammed
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Integration