Open Wsp0000 opened 4 years ago
Hi @vthinkxie May I ask is this issue will be fixed?
or just a rare use case that will deal with it someday? or If there are other considerations...?
Hi @vthinkxie May I ask is this issue will be fixed?
or just a rare use case that will deal with it someday? or If there are other considerations...?
You can use colspan attribute in th and td of table. and set large X attribute in nzScroll (eg 1500px)
Reproduction link
https://stackblitz.com/edit/angular-nz-table-wrap-issue
Steps to reproduce
nzTable #fixedTable
nz-table
with[nzScroll]="{ y: '200px' }"
style="white-space:nowrap"
please see png: Upper half is what I expected, lower half is steps to reproduce What i encountered
What is expected?
column width long as content, when add
style="white-space:nowrap"
,What is actually happening?
after add
style="white-space:nowrap"
,"#fixedTable"
column width become seems average the window widthWhat I expected result is
"#expectedTable"
in link to minimal reproduction (but this approach table header not fixed, because scroll is outside table) or if this not the issue, can it be Feature Request?