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

有\n的时候,计算行数不准确,有什么办法解决吗? #19

Open
yan885283 opened this issue Aug 14, 2018 · 2 comments
Open

Comments

@yan885283
Copy link

有\n的时候,计算行数不准确,有什么办法解决吗?

@Carbs0126
Copy link
Owner

我觉得可以在settext方法中,判断包含多少个\n,如果有的话,计算的行数就要加多少行。如果想在收缩显示时,去掉\n字符,也可以在这个settext方法中手动去更改传入的string。

@hanmeimei888
Copy link

(´・Д・)」

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

3 participants