Horizontal scolling does not work

Horizontal scolling does not work

conradfrconradfr Posts: 4Questions: 0Answers: 0
edited May 2012 in General
I tried to fix it by myself for a long time but I surrender.

I try to apply the example to my code but nothing happens.

One difference I noticed between the example and my application is that, as soon as there is a need for horizontal scrolling, dataTables generates a fixed width instead of "100%" on elements like "dataTables_scrollHead", "dataTables_scrollBody", "dataTables_scrollFoot" or "table .display .dataTable".

Any idea why ?

Replies

  • allanallan Posts: 63,542Questions: 1Answers: 10,476 Site admin
    In what way does it not work? This example shows that it should: http://datatables.net/release-datatables/examples/basic_init/scroll_x.html .

    Please link to a test case showing the problem.

    Alan
  • conradfrconradfr Posts: 4Questions: 0Answers: 0
    Thank you for you reply.

    I get this warning in the console : "DataTables warning (table id = 'results-table'): The table cannot fit into the current element which will cause column misalignment. Increase the sScrollXInner value or remove it to allow automatic calculation"

    Increasing it or removing it does nothing (except well, removing the warning).

    I will figure out a way to put a link later.
This discussion has been closed.