revolist / revogrid

Powerful virtual data grid smartsheet with advanced customization. Best features from excel plus incredible performance 🔋
https://rv-grid.com
MIT License
2.68k stars 166 forks source link

Question: How to scroll horizontally a cell into visible area #350

Open sven42 opened 1 year ago

sven42 commented 1 year ago

As a work around for https://github.com/revolist/revogrid/issues/349 I need to scroll the focused cell into the visible area by my own.

How can I scroll the cell, so that the cell becomes visible without scrolling more than needed?

Currently I use grid.scrollToColumnProp(colIndex) but do not know how to test, if a cell is inside the visible area already. This moves the focused cell to the first column and makes it jump away when the user clicks to focus a cell.