ScrollResize + SearchPanes => layout problems
ScrollResize + SearchPanes => layout problems
Link to test case: https://live.datatables.net/qejopapa/2/edit
Hi,
In the test case, I have a full size DataTable (with scrollResize) and a searchPanes button
If you click on the SearchPanes button : the panel is oversized.
Then if you close the searchePanes and click the button again : the searchPanes heigth is ok, but the DataTable height is reduced !
Then, if you click again the SearchPanes button, the panel is oversized, and the Datatable height is ok.
And so on...
I want to have a full height DataTable (with scrollResize) and a "normal" searchePanes height.
I don't find how to have both.
Please help.
Thx.
Answers
After watching ScrollResize code, I have modified it :
Replaced 'div.dt-scroll-body' selector by 'div.dt-scroll-body:not(div.dtsp-searchPane div.dt-scroll-body)'.
So, ScrollResize ignores SearchPanes datatables.
Not sure it is the best way to to it ?
Yup - that's a good workaround. I hadn't tried the combination of the two together. Thanks for pointing that out.
Allan