Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-25648] Windows: Implement Ti.UI.Label.minimumFontSize and maxLines

GitHub Issuen/a
TypeNew Feature
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2018-03-07T00:40:28.000+0000
Affected Version/sRelease 7.0.0
Fix Version/sRelease 7.1.0
ComponentsWindows
Labelsn/a
ReporterKota Iguchi
AssigneeKota Iguchi
Created2018-01-05T01:01:20.000+0000
Updated2018-05-16T23:37:55.000+0000

Description

In some cases we want to make sure to display entire text even when Label space is small. We have useful property for it ([Ti.UI.Label.minimumFontSize](http://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.Label-property-minimumFontSize)) on other platforms. According to the doc, Label's font will be auto-downscaled so that its text will fit the label's width if necessary. Unfortunately, it is not implemented yet for the Windows platform.

Attachments

FileDateSize
MinFontSizeTest.js2018-01-05T03:16:23.000+00006453

Comments

  1. Kota Iguchi 2018-01-05

    Resources from Android implementation: https://github.com/appcelerator/titanium_mobile/pull/9161 https://github.com/appcelerator/titanium_mobile/blob/master/android/modules/ui/src/java/ti/modules/titanium/ui/widget/TiUILabel.java#L230
  2. Kota Iguchi 2018-02-01

    https://github.com/appcelerator/titanium_mobile_windows/pull/1176
  3. Samir Mohammed 2018-02-20

    Master is merged, waiting for 7.1.0 back-port [~kiguchi]
  4. Kota Iguchi 2018-02-21

    7_1_X backport: https://github.com/appcelerator/titanium_mobile_windows/pull/1197
  5. Samir Mohammed 2018-03-02

    Closing ticket; Verified new feature in SDK Version: 7.1.0.v20180228160738 and SDK Version: 7.2.0.v20180301101144. Test and other information can be found at: Master:https://github.com/appcelerator/titanium_mobile_windows/pull/1176 7_1_X: https://github.com/appcelerator/titanium_mobile_windows/pull/1197
  6. Kota Iguchi 2018-03-07

    Reopening - just wanted to update ticket title for better description.

JSON Source