Datatables: Change height of table not working

前端 未结 3 760
孤城傲影
孤城傲影 2020-12-30 10:03

I am using a Jquery Datatables table with bPaginate = false and sScrollY is some fixed height. Ultimately I want the table to resize on the window.resize event.

To

3条回答
  •  时光说笑
    2020-12-30 10:24

    It might be the case that the sScrollY value only sets the size of the table on initialize and then when you change the value it does not reside the table. That value might only be used to tell datatables "after this amount of scrolling render more results" so you might have to create a facade that updates the sScrollY and then manually updates the css width of that table to the desired height.

提交回复
热议问题