define height for dataTables_scrollBody

define height for dataTables_scrollBody

klibberklibber Posts: 1Questions: 0Answers: 0
edited December 2010 in General
Hi there,

I try to define the height for the area defined with class dataTables_scrollBody
The problem is, it doesn't accept my changes on the css. So I'm wondering myself if there has to be made some changes in the jquery.dataTables.js? The height is always set automatically set on 200. But I can't change it. Also not in the JavaScript.

Maybe someone can help me going on?

Thanks

Replies

  • oscarshuoscarshu Posts: 6Questions: 0Answers: 0
    Same question, pls help us!!
    THx~
  • allanallan Posts: 63,531Questions: 1Answers: 10,474 Site admin
    The sScrollY property is the one which sets that ( http://datatables.net/ref#sScrollY ). If you want something other than 200px, just change that value.

    Allan
  • oscarshuoscarshu Posts: 6Questions: 0Answers: 0
    Thx allan for your help!
    But I find sScrollY property works only after I scroll to the end of the table to load the next page of data ( the table I try to manage using Infinite Scroll), the default height of the table( the dataTables_scrollBody) is always 200 px and can't be changed by CSS since it's hard coded in JS and I really can't find where.
    Thank you for any further help!
  • allanallan Posts: 63,531Questions: 1Answers: 10,474 Site admin
    I'm not quite sure where the 200px is coming from I'm afraid - can you give me a link? There is the "scrolling gap" (which is 100px by default - http://datatables.net/ref#iScrollLoadGap ), which is the point at which DataTables will go off and load some more data.

    Allan
  • fbasfbas Posts: 1,094Questions: 4Answers: 0
    could be in the css (for example in the demo_page.css or demo_table.css in the zip file, min-height is set to 304px)
This discussion has been closed.