Skip to content
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-25971] : iOS minimumFontSize property in Ti.UI.label lowers text baseline as it decreases #10006

Merged
merged 7 commits into from Jun 21, 2018

Conversation

vijaysingh-axway
Copy link
Contributor

@build build added the ios label Apr 19, 2018
@build
Copy link
Contributor

build commented Apr 19, 2018

Messages
📖

💾 Here's the generated SDK zipfile.

Generated by 🚫 dangerJS

@@ -463,6 +463,7 @@ - (void)setMinimumFontSize_:(id)size
[label setAdjustsFontSizeToFitWidth:YES];
CGFloat ratio = minFontSize / label.font.pointSize;
[label setMinimumScaleFactor:ratio];
[label setBaselineAdjustment:UIBaselineAdjustmentNone];
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good fix! I am wondering what the baseline-adjustment is before setting this? Since UIBaselineAdjustmentNone is already the default. And should we expose this as a property as well? Are there use-cases in our environment for this? And Android parity? Definitely as an own ticket, but maybe not even relevant.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Default is UIBaselineAdjustmentAlignBaselines. This property is only relevant with "adjustsFontSizeToFitWidth" = true. I don't think it is more relevant to expose, if we have already expose property minimumFontSize which includes minimumScaleFactor and adjustsFontSizeToFitWidth.

@hansemannn hansemannn modified the milestones: 7.2.0, 7.3.0 Apr 19, 2018
@build build added the ios label Apr 19, 2018
@hansemannn hansemannn added the bug label Apr 19, 2018
@build build added the ios label Apr 19, 2018
@build
Copy link
Contributor

build commented Jun 21, 2018

Messages
📖

💾 Here's the generated SDK zipfile.

Generated by 🚫 dangerJS

@hansemannn hansemannn merged commit 416fdbd into tidev:master Jun 21, 2018
@hansemannn hansemannn modified the milestones: 7.4.0, 7.5.0 Aug 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants