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

iOS: minimumFontSize property in Ti.UI.label lowers text baseline as it decreases


    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: Release 5.5.1, Release 6.3.0, Release 7.1.0
    • Fix Version/s: Release 7.5.0
    • Component/s: iOS
    • Environment:

      MacOS High Sierra, Ti Studio 5.0, SDK 7.1 & 6.3

    • Story Points:
    • Sprint:
      2016 Sprint 17 SDK


      We've observed this problem for quite a while (I think it might also be in SDK 5.5) but it was one of those "am I seeing things or is this really happening?" bugs. I finally sat down and ran some test cases and it is really happening. As the attached test code shows, set the original font size such that the string does not fit the width of the label. Then steadily decrease minimumFontSize until the string fits. The string eventually fits into the label but the baseline of the text drops a little bit every time minimumFontSize is decreased. We set borderWidth to 2 so that you can see the text move relative to the boundaries of the label.

      We have several apps that require this functionality - it used to work properly somewhere in the SDK 5 generation.

      The same code runs correctly on Android 7.1 (see screenshot)


        1. Screen Shot 2018-07-20 at 17.32.21.png
          75 kB
          Samir Mohammed
        2. Screen Shot Android.png
          44 kB
          Joe Falcone
        3. Simulator Screen Shot - iPhone 6 - 2018-04-16 at 18.22.40.png
          55 kB
          Joe Falcone



            • Assignee:
              vijaysingh Vijay Singh
              jfalcone Joe Falcone
              Hans Knöchel
              Samir Mohammed
            • Watchers:
              1 Start watching this issue


              • Created:

                Backbone Issue Sync

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

                  Git Integration