ng-zorro-antd icon indicating copy to clipboard operation
ng-zorro-antd copied to clipboard

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

Open zmzimpl opened this issue 4 years ago • 2 comments

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

zmzimpl avatar Jul 08 '20 05:07 zmzimpl

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

zorro-bot[bot] avatar Jul 08 '20 05:07 zorro-bot[bot]

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

dshark95 avatar Jan 22 '21 04:01 dshark95