ng-zorro-antd
ng-zorro-antd copied to clipboard
nz-table 设置 nzScroll 之后,无论高度是否超过 y ,都会出现滚动条
Reproduction link
https://stackblitz.com/edit/angular-wvxwbn
Steps to reproduce
将nzScroll设置成大于实际数据高度的值,此时仍有滚动条
What is expected?
当数据高度小于滚动高度y时,滚动条不应该显示
What is actually happening?
当数据高度小于滚动高度y时,仍有滚动条
Environment | Info |
---|---|
ng-zorro-antd | 9.2.2 |
Browser | Chrome |
Translation of this issue:
After nz-table setting nzScroll, regardless of the height exceeds y, a scroll bar will appear
Reproduction link
Https://stackblitz.com/edit/angular-wvxwbn
Steps to reproduce
The nzScroll set a value greater than the actual height of the data, at this time there is still a scroll bar
What is expected?
When the height is less than the rolling height data y, the scroll bar should not be displayed
What is actually happening?
When the data is less than the height of the rolling height y, there scrollbar
Environment | Info |
---|---|
Ng-zorro-antd | 9.2.2 |
Browser | Chrome |
@hsuanxyz can try this: https://stackblitz.com/edit/angular-wvxwbn-ck723p?file=src%2Fapp%2Fapp.component.ts