Handsontable: Virtual scrolling doesn't work if Handsontable's container is a virtual element.

Created on 4 Dec 2018  路  3Comments  路  Source: handsontable/handsontable

Description

Full issue's background was described in handsontable/angular-handsontable#43.

To make a long story short, if you try to initialize Handsontable in a virtual created element, then virtual scrolling doesn't work.

Steps to reproduce

  1. Open demo.
  2. Scroll vertically/horizontally.
  • There is a workaround - you can use this.updateSettings({}) instead of this.render().

Demo

https://jsfiddle.net/mcvqyrd1/

Your environment

  • Handsontable version: 1.14.0 (0.34.0)+
  • Browser Name and version: Chrome, Safari, Edge
walkontable Bug scroll

Most helpful comment

If you use hot.view.wt.wtOverlays.updateMainScrollableElements() after initializing the Handsontable that also works (not inside the afterInit callback) and has a lot less of an impact on performance than updateSettings() does. Useful for if you are creating/destroying tables on a regular basis. Not sure if that information helps or not.

All 3 comments

If you use hot.view.wt.wtOverlays.updateMainScrollableElements() after initializing the Handsontable that also works (not inside the afterInit callback) and has a lot less of an impact on performance than updateSettings() does. Useful for if you are creating/destroying tables on a regular basis. Not sure if that information helps or not.

ETA for resolution of this issue ?

Hey @naveenjaiswal

the fix has been postponed. We need some time to figure out the exact approach. I will send you a notification once we get this done.

Was this page helpful?
0 / 5 - 0 ratings