Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8115072

Hittesting inside TextFlow fails

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 8
    • 8
    • javafx
    • None
    • MacOSX

      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.

            fheidric Felipe Heidrich (Inactive)
            tschindl Tom Schindl
            Votes:
            3 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: