Datatables plugin auto width does not resize well in Chrome
Datatables plugin auto width does not resize well in Chrome
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
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 beauto
. It should be eithertrue
orfalse
.Thanks,
Allan