How to remove horizontal scroll in mobile version?

How to remove horizontal scroll in mobile version?

SiceSice 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

  • rf1234rf1234 Posts: 2,997Questions: 87Answers: 421

    Just turn off scrollX when you detect a mobile screen upon data table initialization.

  • allanallan Posts: 63,523Questions: 1Answers: 10,473 Site admin

    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

Sign In or Register to comment.