I am trying to implement essentially a button that when pressed will scroll to a certain widget in a scroll box. The issue I am having is trying to figure out if the widget that I have is in view and then making the Scroll Back button appear/disappear when appropriate.
Is there a way to get the position of a ScrollBox slot widget as a scroll offset of the ScrollBox? That way I could compare the difference between the current scroll box offset with the scroll offset position of the widget to determine if it is in view.
For example, I would assume the top widget would have a scroll offset position of 0 since it is at the very top. The bottom widget scroll offset position would be the max scroll offset of the scrollbox, etc.
How can I calculate something like this?