ScrollResize + SearchPanes => layout problems

ScrollResize + SearchPanes => layout problems

ncochonncochon Posts: 3Questions: 1Answers: 0

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

  • ncochonncochon Posts: 3Questions: 1Answers: 0

    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 ?

  • allanallan Posts: 63,761Questions: 1Answers: 10,510 Site admin

    Yup - that's a good workaround. I hadn't tried the combination of the two together. Thanks for pointing that out.

    Allan

Sign In or Register to comment.