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

TreeSelect中 开启虚拟滚动之后(nzVirtualHeight ),如果item太宽 会显示不全,(不会再出现横向滚动条) #9044

Closed
takakisann opened this issue Mar 13, 2025 · 1 comment · Fixed by #9045
Assignees

Comments

@takakisann
Copy link

Reproduction link

https://stackblitz.com/edit/gwd6ww4k?file=src%2Fapp%2Fapp.component.ts

Steps to reproduce

模拟NzTreeNodeOptions中每一项的title很长的情况

What is expected?

和不使用虚拟滚动(nzVirtualHeight )一样,出现横向滚动条,可以显示完全部的title

What is actually happening?

没有出现横向滚动条,title显示不全

Environment Info
ng-zorro-antd 19.1.0
Browser 谷歌
Copy link

zorro-bot bot commented Mar 13, 2025

Translation of this issue:

After turning on virtual scrolling in TreeSelect (nzVirtualHeight), if the item is too wide, it will be incomplete (the horizontal scroll bar will not appear again)

Reproduction link

https://stackblitz.com/edit/gwd6ww4k?file=src%2Fapp%2Fapp.component.ts

Steps to reproduce

Simulate the situation where the title of each item in NzTreeNodeOptions is very long

What is expected?

Like not using virtual scrolling (nzVirtualHeight), a horizontal scroll bar appears, which can display the complete title.

What is actually happening?

There is no horizontal scroll bar, the title is incomplete

Environment Info
ng-zorro-antd 19.1.0
Browser Google

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

Successfully merging a pull request may close this issue.

2 participants