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

竖向排列最后一行被省略 #986

Open
ITzhao opened this issue Aug 11, 2023 · 0 comments
Open

竖向排列最后一行被省略 #986

ITzhao opened this issue Aug 11, 2023 · 0 comments

Comments

@ITzhao
Copy link

ITzhao commented Aug 11, 2023

代码:

    let lab = YYLabel()
    lab.numberOfLines = 4
    lab.isVerticalForm = true
    lab.textVerticalAlignment = .top
    lab.exclusionPaths = [UIBezierPath.init(rect: .zero)]
    lab.preferredMaxLayoutWidth = adapt_size(300)
    lab.backgroundColor = .randomColor

当文本小于4行时,正常展示;超过4行时,第四行整体顶部对齐只有 "..." , 文字被省略,期望是第四行 "xxxxxxx ..."

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

1 participant