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

Windows: Unit specifier is ignored for font size

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: Release 7.1.0
    • Fix Version/s: Release 7.3.0
    • Component/s: Windows
    • Labels:
      None
    • Story Points:
      5
    • Sprint:
      2018 Sprint 11 SDK

      Description

      Changing unit specifier for font size does not change font size.

      var win = Ti.UI.createWindow({
          backgroundColor: 'green',
      });
       
      var view1 = Ti.UI.createView({
          backgroundColor: 'red',
          top: 10, left: 10,
          width: '50', height: '50'
      });
      var label1 = Ti.UI.createLabel({
          text: 'DEF',
          font: {
              fontSize: '18'
          }
      });
      view1.add(label1);
       
      var view2 = Ti.UI.createView({
          backgroundColor: 'red',
          top: 70, left: 10,
          width: '50px', height: '50px'
      });
      var label2 = Ti.UI.createLabel({
          text: 'PX',
          font: {
              fontSize: '18px'
          }
      });
      view2.add(label2);
       
      var view3 = Ti.UI.createView({
          backgroundColor: 'red',
          top: 130, left: 10,
          width: '50dp', height: '50dp'
      });
      var label3 = Ti.UI.createLabel({
          text: 'DP',
          font: {
              fontSize: '18dp'
          }
      });
      view3.add(label3);
       
      var view4 = Ti.UI.createView({
          backgroundColor: 'red',
          top: 200, left: 10,
          width: '50dip', height: '50dip'
      });
      var label4 = Ti.UI.createLabel({
          text: 'DIP',
          font: {
              fontSize: '18dip'
          }
      });
      view4.add(label4);
       
      var view5 = Ti.UI.createView({
          backgroundColor: 'red',
          top: 270, left: 10,
          width: '50pt', height: '50pt'
      });
      var label5= Ti.UI.createLabel({
          text: 'PT',
          font: {
              fontSize: '18pt'
          }
      });
      view5.add(label5);
       
      win.add(view1);
      win.add(view2);
      win.add(view3);
      win.add(view4);
      win.add(view5);
       
      win.open();
      

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

                    Git Source Code