titanium-sdk icon indicating copy to clipboard operation
titanium-sdk copied to clipboard

Add autoSize to label

Open m1ga opened this issue 2 years ago • 1 comments

I have searched and made sure there are no existing issues for the issue I am filing

  • [X] I have searched the existing issues

Description

Adds a property autoSize to Ti.UI.Label. This makes the text fill out the label width/height automatically: ezgif-2-2a79fa0f8f It won't change the fontSize and will restore the old value when you deactivate it. Similar to the minimumFontSize but you don't need to define a max/min value.

Solution

adding a property autoSize

Alternatives

No response

Platforms

Android

Looking for a parity ticket :)

m1ga avatar Jan 15 '22 13:01 m1ga

I did a module that solve this on iOS https://github.com/mbender74/ti.labelextension-ios

mbender74 avatar Jan 19 '22 20:01 mbender74