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

table: 虚拟滚动闪烁回弹 #3509

Closed
margintopt opened this issue May 29, 2019 · 2 comments
Closed

table: 虚拟滚动闪烁回弹 #3509

margintopt opened this issue May 29, 2019 · 2 comments

Comments

@margintopt
Copy link

Reproduction link

https://stackblitz.com/edit/ng-zorro-antd-start-ouyjnz?file=src/app/app.component.ts

Steps to reproduce

table中使用虚拟滚动 且有ngIf等判断

What is expected?

正常滚动

What is actually happening?

table中ngIf越多 滚动闪烁情况越严重 甚至会出现无法向下滚动回弹的效果

Environment Info
ng-zorro-antd 7.4.1
Browser Google Chrome 74.0.3729.169(正式版本) (64 位)
@ng-zorro-bot
Copy link
Collaborator

Translation of this issue:


table: Virtual scrolling flashback rebound

Reproduction link

[https://stackblitz.com/edit/ng-zorro-antd-start-ouyjnz?file=src/app/app.component.ts](https://stackblitz.com/edit/ng-zorro-antd- Start-ouyjnz?file=src/app/app.component.ts)

Steps to reproduce

Use virtual scrolling in table and judge with ngIf

What is expected?

Normal scrolling

What is actually happening?

The more ngIf in the table, the more serious the scrolling situation, and even the effect of not being able to scroll down.

Environment Info
ng-zorro-antd 7.4.1
Browser Google Chrome 74.0.3729.169 (official version) (64-bit)

@vthinkxie
Copy link
Member

你设定的 [nzVirtualItemSize]="65" ,但是明显每行高度不是65px,请仔细阅读文档

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