Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nz-table: <resizable-handle> style error when along with column sorter #8677

Open
Tony-aka-Isaac opened this issue Aug 3, 2024 · 2 comments
Assignees

Comments

@Tony-aka-Isaac
Copy link

Reproduction link

https://stackblitz.com/edit/ng-zorro-antd-ivy-hg31fc?file=src%2Fapp%2Fapp.component.ts

Steps to reproduce

As shown in the stackblitz link, use column resizable and sorter at the same time.

What is expected?

The resizable-handle component, as it was in previous versions, should be placed at the end of the each where the verticle divider was placed.

What is actually happening?

Now it is placed between the column title and the sorter.

Environment Info
ng-zorro-antd 17.4.1
Browser Chrome 127

I have already found out the reason for the issue. In previous versions (this issue could occured before v17.4.1 because the latest version I used with this function before v17.4.1 is v9.3), the rendered template was: th >> nz-table-sorters >> ((span >> {{title}} nz-resize-handle) span.class="ant-table-column-sorter"). The nz-table-sorters has "position: relative" so the resize-handle with "position: absolute" is correct in place. But now the direct parent span of the resize-handle has a class named "ant-table-column-title" with a "position: relative" in it, so the absolute postion of resize-handle is now mistaken.

@Tony-aka-Isaac
Copy link
Author

I know the resizable component is still an experimental function, so to temporarily fix it in my project I set the .ant-table-column-title as position: unset. Hope it will not lead to other problems.

@lppedd
Copy link
Contributor

lppedd commented Aug 21, 2024

First-class support for the resizable directive in table columns would be nice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants