sScrollX - only when needed

sScrollX - only when needed

sjamilsjamil Posts: 4Questions: 0Answers: 0
edited August 2010 in General
when I set sScrollX to "sScrollX": "800px", I get the scrolling horizontal bar even if the data does not overflow. Is it possible have the scrolling only when the data will overflow similar to css overflow: auto.

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    This should already be the case. For example try this http://datatables.net/examples/basic_init/scroll_x.html - with the 'sScrollXInner' removed. What browser are you using, and can you post an example please?

    Allan
  • sjamilsjamil Posts: 4Questions: 0Answers: 0
    Allan - my mistake. There was some additional css that was getting applied by our code that was causing the scroll bar to always show up. when I removed those classes, the table now shows no scroll bar unless it overflows. Thanks
This discussion has been closed.