Hittesting inside TextFlow fails

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 8
    • Affects Version/s: 8
    • Component/s: javafx
    • None
    • Environment:

      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.

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

              Created:
              Updated:
              Resolved:
              Imported: