How to remove horizontal scroll in mobile version?
How to remove horizontal scroll in mobile version?
Sice
Posts: 1Questions: 1Answers: 0
Good afternoon. I have one column in a table and long rows in that column.
In the mobile version, the block with the table is equal to the width of the screen and a horizontal scroll appears. Please tell me how to remove this horizontal scroll exactly in the mobile version, so that the line is simply transferred to a new one when there is not enough screen width. Thank you.
Answers
Just turn off scrollX when you detect a mobile screen upon data table initialization.
Also you can enable the Responsive extension for mobile screens. If you want to keep scrollX for desktop then you've need to is an
if
condition in you code to decide if you want Responsive or scrolling.Allan