NG-ZORRO / ng-zorro-antd

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

nzExpand on tr cause wrong layout on this row #6842

Open reallyimeric opened 3 years ago

reallyimeric commented 3 years ago

Reproduction link

https://stackblitz.com/edit/ng-zorro-antd-ivy-f6w1tx

Steps to reproduce

expand the row

What is expected?

layout is OK; all c2 should be horizontal aligned

What is actually happening?

c2 on last tr are not visually aligned

Environment Info
ng-zorro-antd 11.4.2
Browser Chromium 91.0.4472.114

workaround: use *ngIf instead of nzExpand on the last tr

lamhungypl commented 3 years ago

you should define your own layout on the expanded row, it's not related parent table.

Dcx199302 commented 2 years ago

我也遇到了这个问题,使用的是10.2.2 使用*ngIf=mapOfExpandData[data.id]可以解决这个问题 代码是在8.x版本迁移过来的