A correct way to set column width in datatable when there is ScrollY

A correct way to set column width in datatable when there is ScrollY

tnthieutnthieu Posts: 26Questions: 9Answers: 0

Hello
When I set width for a column datatable using
<th style="width: 120px">Code</th>
and set up the datatable with scroll

scrollY: (screen.height - 435) + 'px',
scrollX: true,

I will have a problem with misalign between header and content.
Do you have an example of a correct way to set a column width for jquery datatable with scroll Y?

Thank you

Answers

  • colincolin Posts: 15,237Questions: 1Answers: 2,598

    We're happy to take a look, but as per the forum rules, please link to a test case - a test case that replicates the issue will ensure you'll get a quick and accurate response. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.

    Cheers,

    Colin

This discussion has been closed.