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

Windows: unit specifier for fontSize should be ignored

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Won't Do
    • Affects Version/s: Release 8.3.0
    • Fix Version/s: None
    • Component/s: Windows
    • Labels:
    • Story Points:
      5
    • Sprint:
      2019 Sprint 25, 2019 Sprint 26

      Description

      Setting fontSize with unit specifier for Font shows smaller fonts. It also could end up throwing runtime exception when display information is not provided by Windows. We might want to just "ignore" unit specifier in order to keep parity between iOS.

      var win = Ti.UI.createWindow({
          backgroundColor: 'green',
          layout: 'vertical',
          title: 'Label Demo'
      });
       
      var label1 = Ti.UI.createLabel({
          color: '#900',
          font: { fontSize: '48dp' },
          text: 'A simple label',
          top: 30,
          width: Ti.UI.SIZE, height: Ti.UI.SIZE
      });
       
      var label2 = Ti.UI.createLabel({
          color: '#900',
          font: { fontSize: 48 },
          text: 'A simple label',
          width: Ti.UI.SIZE, height: Ti.UI.SIZE
      });
       
      win.add(label1);
      win.add(label2);
      win.open();
      

      Expected: Both Labels should be shown with same font size 48.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                cwilliams Christopher Williams
                Reporter:
                kiguchi Kota Iguchi (Inactive)
                Reviewer:
                Gary Mathews
              • Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                    Git Integration