Flowless icon indicating copy to clipboard operation
Flowless copied to clipboard

Add API for getting and showing a TargetPosition

Open JordanMartinez opened this issue 8 years ago • 1 comments

Per the end of my comment in #32:

As a side note, I think there should be a way to get the navigator's current position, so that one could use that to determine what to display after some change occurs (e.g. scroll from the current position or display an item 10 indexes higher, etc.) via VirtualFlow's show method. In order to support that functionality, there would need to be more view-related API methods that returned a TargetPosition of a specific cell.

JordanMartinez avatar Jun 06 '17 18:06 JordanMartinez

On second thought, this might be better implemented by virtualFlow.getCellIfVisble(idx).map(c -> c.getNode().getLayoutBounds()) (or similar bounds calculations like that on the screen) and using that to calculate the offset value to use in virtualFlow.show(idx, offset)

JordanMartinez avatar Jun 06 '17 18:06 JordanMartinez