FixedColumns issue with jumpy fixed column

FixedColumns issue with jumpy fixed column

regentregent Posts: 5Questions: 0Answers: 0
edited March 2013 in General
I have an issue with my datatable when using FixedColumns. Following the basic initialization and fixing just the 1st left column, as I scroll the table to the right, the fixed column is shaky. When I stop scrolling, the fixed column then fixes in place nicely, but as long as I'm scrolling the table, the fixed column is shaky.

No amount of css tweaking would fix this issue.

Any idea as to why my fixed column is shaky?

Replies

  • allanallan Posts: 63,523Questions: 1Answers: 10,473 Site admin
    edited March 2013
    Can you please link to a test case. Also are you using FixedColumns 2.5.0.dev or something else? And what browser?

    Allan
  • regentregent Posts: 5Questions: 0Answers: 0
    I can't link to the page because it is on our company intranet.

    I've tried both 2.5.0.dev and 2.0.3 and the issue is the same.

    One odd thing is that the horizontal scrollbar is under all the columns, including the fixed one. In your examples, the fixed column does not have the scrollbar underneath it. Perhaps this is the problem? But I don't know how to fix that.

    Thanks.

    Here is my datatable code if it will help:

    var oTable = $('#slot').dataTable( {

    "sScrollY": 500,
    "sScrollX": "100%",
    "bScrollCollapse": true,
    "bFilter": false,
    "bPaginate": false,
    "bSort": false,
    "asStripeClasses": [ ],
    "sDom": 'C<"clear">lfrtip',
    "oColVis": {
    "fnLabel": function ( index, title, th ) {
    return ''+ th.getAttribute('title') + '';
    },
    "buttonText": "Adjust Drives",
    "aiExclude": [ 0, 1 ],
    "bRestore": true,
    "sAlign": "left"
    },
    } );

    new FixedColumns( oTable );
  • allanallan Posts: 63,523Questions: 1Answers: 10,473 Site admin
    Its possible that might well be the issue, but I'm afraid that without a way to reproduce the error, I'd be blindly guessing as to what might be causing it and for any fix.

    Allan
  • regentregent Posts: 5Questions: 0Answers: 0
    edited March 2013
    Thanks for the help.

    I tried an experiment. I copied your code exactly in the basic initialization example, table and all js links, and I still get the scrollbar under the fixed column. I have no other css nor js other than what is in your example, and the fixed column still doesn't work right.
  • allanallan Posts: 63,523Questions: 1Answers: 10,473 Site admin
    This page, but with 2.5.0.dev: http://datatables.net/release-datatables/extras/FixedColumns/index.html ?

    I'm still not able to reproduce that problem I'm afraid. What browser are you using and its version?
This discussion has been closed.