Skip to content
This repository has been archived by the owner on Feb 2, 2023. It is now read-only.

set the lineSpacing of the ASTextNode seems not correct? #3174

Closed
abellee opened this issue Mar 12, 2017 · 6 comments
Closed

set the lineSpacing of the ASTextNode seems not correct? #3174

abellee opened this issue Mar 12, 2017 · 6 comments

Comments

@abellee
Copy link

abellee commented Mar 12, 2017

multi-line text in ASTextNode, and set the paragraph style's lineSpacing to 5 or more,
and set the backgroundColor of the ASTextNode, that let me know the edges of the text clearly.
then I found the first line just equal to the left and top, but the last line is not,
seems like there is more than one line height white space, at the bottom of the last line.
is this a problem? or any settings I have missed?

@Kaspik
Copy link

Kaspik commented Mar 12, 2017

Probably the same issue as already tracked here: #3128

@abellee
Copy link
Author

abellee commented Mar 12, 2017

@Kaspik so it is a bug?
now I only have to set lineHeightMultiple instead of lineSpacing to avoid this problem

@Kaspik
Copy link

Kaspik commented Mar 13, 2017

Yes, this is a bug.

@Shafichariri
Copy link

Hello Guys, did you find a work-around? Using 'lineHeightMultiple' fixes this problem but it creates another [Extra top spacing].

@maicki
Copy link
Contributor

maicki commented Apr 25, 2017

@abellee Can you please try setting truncationMode = NSLineBreakByTruncatingTail and test again. Thanks!

@garrettmoon
Copy link
Contributor

Going to close this out since there's been no reply.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants