i need to synchronize the vertical scroll offset of a NatTable with another SWT component (not NatTable). The other component can be accurately scrolled by pixels (not rows).
To do the synchronization, i managed to set the row height of the NatTable to match the row height of the other component, but i don't know how to scroll the NatTable by pixels, and get the current scroll offset in pixels.
To programmatically inspect the current viewport offset you can use ViewportLayer.getOrigin() which returns a PixelCoordinate. If you want to set the offset programmatically you can use the ViewportLayer's setOriginX() and setOriginY() methods to do so.