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

some linebreaks are missing when label is narrow. #517

Open
veksha opened this issue Jun 1, 2023 · 1 comment
Open

some linebreaks are missing when label is narrow. #517

veksha opened this issue Jun 1, 2023 · 1 comment

Comments

@veksha
Copy link

veksha commented Jun 1, 2023

hi.

i'm using label like this:

let label = newLabel newRect(20, 20, 150, 20)
label.verticalAlignment = vaTop
label.text = res[0].lyric.replace("\r\n", "|\r\n")
cc.addSubview(label)
v.addSubview(cc)

and i get this picture:

image

as you can see some linebreaks are missing. (before "Lunacy", "Turns" and "Cannot")

if i change width of label rect from 150 to 500, i get nice linebreaks:

image

question: is this a bug?

@yglukhov
Copy link
Owner

yglukhov commented Jun 2, 2023

Yes, looks like a bug to me.

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

No branches or pull requests

2 participants