Nesting Text elements inside a TextFlow makes the attached hit-test fail, the reason is that the correct Y-Coordinate is reported by the MouseEvent, when directly placing a Text-Node the Y-Coordinate is negative which I find strange.
The reason for the failing of the hit-test is that impl_hitTestChar always adds the YRendering() to the coordinate. To me it looks like Text-Node is providing wrong relative coordinates (negative ones) if placed into a container like HBox and to fix this YRendering was added.
The reason for the failing of the hit-test is that impl_hitTestChar always adds the YRendering() to the coordinate. To me it looks like Text-Node is providing wrong relative coordinates (negative ones) if placed into a container like HBox and to fix this YRendering was added.
- relates to
-
JDK-8092278 Text should have API for selecting group of characters based on their position similar to the DOM's Range.
-
- Closed
-