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

Andy Goryachev angorya at openjdk.org
Wed Jan 10 18:36:36 UTC 2024


On Tue, 9 Jan 2024 07:31:51 GMT, Karthik P K <kpk at openjdk.org> wrote:

> In the `getHitInfo()` method of PrismTextLayout, RTL node orientation conditions were not considered, hence hit test values such as character index and insertion index values were incorrect.
> 
> Added checks for RTL orientation of nodes and  fixed the issue in `getHitInfo()` to calculate correct hit test values.
> 
> Added system tests to validate the changes.

Table View Page (TVP), I think.  Select TVP, close the app, restart.
Also seems to happen when navigating to the TVP.

In any case, we should be checking for null or maybe use the node's orientation rather than the scene's.  What do you think?

-------------

PR Comment: https://git.openjdk.org/jfx/pull/1323#issuecomment-1885406548


More information about the openjfx-dev mailing list