Scroller's displayBuffer must be an odd number. Fatal errors otherwise.

Scroller's displayBuffer must be an odd number. Fatal errors otherwise.

jan_goyvaertsjan_goyvaerts Posts: 31Questions: 0Answers: 0
edited April 2014 in Bug reports
If displayBufer is not set to an odd number, then the statement at line 569 will yield a real number instead of an integer number.

[code]var preRows = ((this.s.displayBuffer-1)/2) * this.s.viewportRows;[/code]

Which in turn causes various index variables to become real numbers too. Which finally ends in loads of errors:

[quote]Uncaught TypeError: Cannot read property 'nTr' of undefined”[/quote]

The very first batch of rows is shown correctly. The errors are triggered when scrolling through the table.

Replies

  • jan_goyvaertsjan_goyvaerts Posts: 31Questions: 0Answers: 0
    Is it a safe workaround to truncate preRows to an integer value ?
  • allanallan Posts: 63,494Questions: 1Answers: 10,470 Site admin
    Probably. Just take the floor of it I would think.

    Allan
  • jan_goyvaertsjan_goyvaerts Posts: 31Questions: 0Answers: 0
    I'll try that. Thanks !
This discussion has been closed.