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

Text/TextFlow.hitTest() is incorrect in RTL orientation

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • jfx23
    • jfx21
    • javafx
    • None
    • b08

      Similarly to https://bugs.openjdk.org/browse/JDK-8319050, hitTest() is totally incorrect when node orientation is set to RIGHT_TO_LEFT.

      To reproduce with the MonkeyTester https://github.com/andy-goryachev-oracle/MonkeyTest :
      - select Text page
      - select Failed Nav Bug text option
      - select Window -> Orientation RTL from the main menu
      Hover over the text displayed on the right side, notice that Text.hitTest label in the options panel is not updated. Try hovering over where the text would be in LTR mode (on the left side). Notice how hitTest label is getting updated.

      The TextFlow also exhibits the same problem with its hitTest().
      Also, a Text embedded in a TextFlow, seems to show a slightly different behavior, in which it does update Text.hitText label on hover, but the actual HitInfo is incorrect (try moving the mouse cursor across the text line).

      The issue with TextFlow might be related to https://bugs.openjdk.org/browse/JDK-8318095

            kpk Karthik P K
            angorya Andy Goryachev
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: