New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[TIMOB-1618] Android: Label property minimumFontSize not implemented #5909
Conversation
Added minimumFontSize property with the same behaviour as on iPhone
Added property minimumFontSize
Implemented parity behaviour for the property minimumFontSize on Android.
Correction: replaced missing font padding implementation
Added import declarations.
/** | ||
* @module.api | ||
*/ | ||
public static final String PROPERTY_MINIMUMFONTSIZE = "minimumFontSize"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might want to change PROPERTY_MINIMUMFONTSIZE
to PROPERTY_MINIMUM_FONT_SIZE
to more align with Appcelerator's coding style.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
@lgolu Can you address the comment above and update the repo to work with the latest master? Its a great addition to the SDK so we would appreciate it as part of the core. Thank you! |
Renamed PROPERTY_MINIMUM_FONT_SIZE
Renamed PROPERTY_MINIMUM_FONT_SIZE
@lgolu Thanks for addressing the comments! Can you please pull from master to resolve the merge conflicts? If not, we can do that for you of course. Then @fmerzadyan can check the CR and FT. Thanks! |
@hansemannn It would be great if you could resolve the merge. Thank you! |
I've resolved the parity ticket for minimumFontSize property of the Label on Android (https://jira.appcelerator.org/browse/TIMOB-1618).
If the property is set it scales the text to fit, same behaviour as on iPhone. It was tested with the Titanium app I'm working on at Atoss, cannot publish testing code.