Scroller with responsive
Scroller with responsive
monicasilva
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
This discussion has been closed.
Replies
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
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
Yes. As the compatibility table notes for Scroller and Responsive:
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