[BUG] ClearAll() on Datatable with navigation, large columns content, adjust:true and small window

Problem

I have a Datatable and for some reason I need to clearAll() the data before adding/loading new data into it.
If I have a small window and I scroll to the further right of the Datatable, then clearAll() throws this error:

Uncaught TypeError: Cannot read property ‘width’ of undefined

Snippet

http://webix.com/snippet/b460e401

Bug reproduction

  1. Reduce your browser’s window size
  2. Move the datatable scrollbar to the further end right
  3. Click the “Clear” Button
  4. Check console error

Am I missing something?

Thank you.

Hi,

It is a bug. We will include the fix in Webix 4.3
As a quick solution, add scrollTo call before clearAll

http://webix.com/snippet/b075c330

Great thank you for the future fix, and with this quick fix it now works smoothly!
Cheers.