empty content placeholder of table with nzScroll directive in a modal is not centered #5526
Answered
by
wenqi73
reallyimeric
asked this question in
Q&A
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 |
Answered by
wenqi73
Sep 22, 2020
Replies: 4 comments 4 replies
|
Hi @reallyimeric |
1 reply
|
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. |
0 replies
|
@reallyimeric This is due to the animation, you need to cancel the animation: <nz-modal nzNoAnimation>...</nz-modal>or modalService.create({
nzNoAnimation: true
}) |
3 replies
Answer selected by
vthinkxie
|
Any workaround or alternative solution to keep the modal animation? |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@reallyimeric This is due to the animation, you need to cancel the animation:
or