Datatables plugin auto width does not resize well in Chrome

Datatables plugin auto width does not resize well in Chrome

cheer021cheer021 Posts: 1Questions: 1Answers: 0

I'm using with Firefox. I shrink the window to be too narrow and table shrinks to its minimum size. I then stretch the window to the entire monitor width and table goes from end-to-end as desired. Great!

I'm viewing with Chrome. I perform the same experiment. The table shrinks to its minimum size, but never again fills the entire screen when if I click to maximize the windows. But if I slowly expand the window size it works.

My code is attached below:
$('#example').dataTable({
scrollY: '90vh',
scrollX: 'auto',
width: '100%'
}

Answers

  • allanallan Posts: 63,772Questions: 1Answers: 10,511 Site admin

    Thanks for your question - however, per the forum rules can you link to a test case showing the issue please. This will allow the issue to be debugged.

    Information on how to create a test page], if you can't provide a link to your own page can be found here.

    Also note that scrollX cannot be auto. It should be either true or false.

    Thanks,
    Allan

This discussion has been closed.