empty content placeholder of table with nzScroll directive in a modal is not centered #5526
-
Reproduction linkhttps://stackblitz.com/edit/angular-nkae5b?file=src/app/app.component.ts Steps to reproduce
What is expected?the placeholder is visually centered What is actually happening?it's not centered
there were some other similar issues with table column width and they has already get fixed (https://github.com/NG-ZORRO/ng-zorro-antd/pull/5437/commits) placeholder width changed after the containing modal open again |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
Hi @reallyimeric |
Beta Was this translation helpful? Give feedback.
-
https://stackblitz.com/edit/nz-table-in-modal?file=src/app/app.component.ts Use modal service also has the bug, it will be right after resizing the window. |
Beta Was this translation helpful? Give feedback.
-
@reallyimeric This is due to the animation, you need to cancel the animation: <nz-modal nzNoAnimation>...</nz-modal> or modalService.create({
nzNoAnimation: true
}) |
Beta Was this translation helpful? Give feedback.
@reallyimeric This is due to the animation, you need to cancel the animation:
or