-
Notifications
You must be signed in to change notification settings - Fork 51
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
SCROLL X Breaks the resizing of the columns #6
Comments
I'll have to compare the behavior in the ColReorder plugin. I think you need to set a pixel width for the table, instead of 100%. |
Looking at this example, it looks like you need to set the width of the dataTables_wrapper to a fixed width and the table width to 100%, like you have. Have you tried that?
|
I would like not to give a fixed with, because i am in a liquid page context. The original ColReorder worked fine with the scrollX option :( |
No worries. You are right, this is broken. I am working on a fix and should have it later today. |
@andreadrupal I just committed a fix to make this plugin work better with scrollX, scrollY, and non-scroller tables. Please give it a try and let me know if you find any issues. |
The fix is in both the master and 3.0 release branches.
…On Tue, Jul 3, 2018, 9:27 AM chandgude ***@***.***> wrote:
hey @jeffreydwalter <https://github.com/jeffreydwalter> . where do I get
your fix. I am new here :(
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#6 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAinB26L5gkbTaLgWeQqNywQ0CzqSqz7ks5uC39SgaJpZM4UEXBs>
.
|
I can confirm that master (d4d9d5b) with dataTables and scrollX works as expected. |
@jeffreydwalter @ShaheedHaque $('#table').DataTable({ |
I use these args by default:
but I also set the width:
I hope that helps. |
var contadortableAfiliado = 0;
|
Hello @jeffreydwalter Sir, I am using the latest version of this js file. Recently I noticed that when the table is in scrollX: true, mode or it has a horizontal scroll feature, then when I am resing the column the header of the column are shifting to left 0 positions and after releasing the mouse it is taking again the right position with proper new width. It is only happening when the horizontal scroll is not in 0 positions. I have also attached the video for a better understanding of the issue. To resolve this issue I have added these two lines inside the resizing function. Check the attached screenshot. But unfortunately this process has not resolved the issue properly.
|
@jeffreydwalter |
Hi,
i have the need to use very large tables, and i need to enable the scrollX=true parameter in datatable.
Unfortunately, the scrollX breaks the resize of the columns (the table body start the new width from 0 px).
The text was updated successfully, but these errors were encountered: