-
Enhancement
-
Resolution: Unresolved
-
P4
-
fx2.0
I need to scroll so that a specific descendant of ScrollPane.getNode() is displayed at a specific location.
I guess using ScrollPane.setHValue() and ScrollPane.setVvalue() and some coordinate calculation/conversion, I should be able to do it. However I wonder if it would not make sense to have something like:
void ScrollPane.scrollToNode(Node node);
// Scroll so that node is on the center (corner?) of the ScrollPane
// "node" must be a descendent of ScrollPane.getNode()
Using a node for targetting a scroll position seems to be very 'FX like' to me.
I guess using ScrollPane.setHValue() and ScrollPane.setVvalue() and some coordinate calculation/conversion, I should be able to do it. However I wonder if it would not make sense to have something like:
void ScrollPane.scrollToNode(Node node);
// Scroll so that node is on the center (corner?) of the ScrollPane
// "node" must be a descendent of ScrollPane.getNode()
Using a node for targetting a scroll position seems to be very 'FX like' to me.
- duplicates
-
JDK-8102126 ScrollPane should allow to scroll node into view (+Generalize scrollTo using event system)
-
- Resolved
-
- relates to
-
JDK-8091864 How to access to ScrollBar component in ScrollPane control ?
-
- Open
-
-
JDK-8102126 ScrollPane should allow to scroll node into view (+Generalize scrollTo using event system)
-
- Resolved
-