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

Change lineSpacing text config attribute to lineHeight #37

Merged
merged 2 commits into from
Oct 5, 2024

Conversation

nicbarker
Copy link
Owner

As suggested by @SogoCZE, this PR switches the concept of lineSpacing in Clay_TextElementConfig for lineHeight. In summary, previously the value added extra pixels of vertical whitespace between wrapped text lines, and now it controls the absolute height (in pixels) of wrapped lines of text, bringing it more in line with the design of other UI layout systems such as CSS.

@nicbarker nicbarker merged commit 51082d2 into main Oct 5, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant