[TIMOB-25648] Windows: Implement Ti.UI.Label.minimumFontSize and maxLines
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2018-03-07T00:40:28.000+0000 |
Affected Version/s | Release 7.0.0 |
Fix Version/s | Release 7.1.0 |
Components | Windows |
Labels | n/a |
Reporter | Kota Iguchi |
Assignee | Kota Iguchi |
Created | 2018-01-05T01:01:20.000+0000 |
Updated | 2018-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
File | Date | Size |
---|---|---|
MinFontSizeTest.js | 2018-01-05T03:16:23.000+0000 | 6453 |
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
https://github.com/appcelerator/titanium_mobile_windows/pull/1176
Master is merged, waiting for 7.1.0 back-port [~kiguchi]
7_1_X backport: https://github.com/appcelerator/titanium_mobile_windows/pull/1197
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
Reopening - just wanted to update ticket title for better description.