-
Notifications
You must be signed in to change notification settings - Fork 32
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
addGridLayout isn't compatible with addHiddenColumns : hidden columns are not taken into account when calculating the number of columns #179
Comments
I'm working in this branch https://github.com/stephane-klein/svelte-headless-table/tree/issue-179 |
Ahh thanks for the report! I appreciate the help! |
@bryanmylee more information in this screencast: https://youtu.be/HQ_AFzAjWFc This screencast shows a Here is the source code example page used in this screencast: https://github.com/stephane-klein/svelte-headless-table/blob/issue-179/src/routes/grid-layout-with-hidden/%2Bpage.svelte First experience:
A bug occurs if I hide a column that is not the last visible column, example, I execute :
Why? In html source code rendered, I see:
I notice that the Another observation:
The For the moment, here's what I've deduced from these observations: the Why does this happen? For the moment, I don't know 🤷🏻♂️. |
@bryanmylee When a column is hidden, this line is not executed for columns placed after the hidden column. |
@bryanmylee I think the bug is fixed with this patch stephane-klein@4c4c72a I will clean my commit and submit a merge request 🙂. |
@bryanmylee cleaned commit : stephane-klein@0cea8b7 |
Hi,
I just discovered that the addGridLayout isn't compatible with addHiddenColumns.
You can see the problem by trying to hide columns in this example: https://svelte.dev/repl/3c2e3375c82748c0941699e4f427c0a7?version=3.48.0
I think hidden columns are not taken into account when calculating the number of columns here.
I'll try to create a pull request to correct this issue 🤞.
Best regards,
Stéphane
The text was updated successfully, but these errors were encountered: