NG-ZORRO / ng-zorro-antd

Angular UI Component Library based on Ant Design
https://ng.ant.design
MIT License
8.81k stars 3.85k forks source link

nz-table 设置 nzScroll 之后,无论高度是否超过 y ,都会出现滚动条 #5527

Open zmzimpl opened 4 years ago

zmzimpl commented 4 years ago

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
zorro-bot[bot] commented 4 years ago

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
dshark95 commented 3 years ago

@hsuanxyz can try this: https://stackblitz.com/edit/angular-wvxwbn-ck723p?file=src%2Fapp%2Fapp.component.ts