Scroller with responsive

Scroller with responsive

monicasilvamonicasilva Posts: 11Questions: 2Answers: 0

Hi
what about scroller extensions togheter with responsive. The scroller seems not to adjust its measure on responsive dsplay when the scrollCollapse option is set to true.
Is it the standard behavior? Or should the scroller change on responsive opening and closing?

Thanks
Monica

Replies

  • colincolin Posts: 15,146Questions: 1Answers: 2,586

    Hi @monicasilva ,

    The compatibility chart suggests they should work together, if modals are used to display the hidden information. We're happy to take a look, but as per the forum rules, please link to a test case - a test case that replicates the issue will ensure you'll get a quick and accurate response. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.

    Cheers,

    Colin

  • monicasilvamonicasilva Posts: 11Questions: 2Answers: 0
    edited November 2018

    Hi @colin

    here the test case http://live.datatables.net/vazuceyo/2/edit
    You can test that expanding responsive, on responsive display, the scroll bar appears even there is enough vertical space to "re scrollCollapse" to contain the child row. So the user has to scroll. (in the compatibility chart scroller&Child rows is red...)
    How can I avoid this situation? I try with responsive-display but doesn't solve it.

    thanks
    Monica

  • allanallan Posts: 61,734Questions: 1Answers: 10,110 Site admin

    Is it the standard behavior?

    Yes. As the compatibility table notes for Scroller and Responsive:

    Responsive must be used with the details display set to be shown in a modal. The details cannot be shown in a child row.

    The issue is that when using Scroller, the exact position of each row must be calculable. Using a child row display disrupts that, so you can't simply do rowIndex * rowHeight to find out where the row should be.

    Allan

This discussion has been closed.