RFR: 8306083: Text.hitTest is incorrect when Text node is present in TextFlow [v3]

Andy Goryachev angorya at openjdk.org
Tue Jun 27 17:59:12 UTC 2023


On Tue, 27 Jun 2023 17:49:48 GMT, Karthik P K <kpk at openjdk.org> wrote:

> The insertion index is reported relative to the Text's text incase of Text node.

right.  in the case of the (highlighted) emoji character - the insertion index starts with 0 which I think cannot be correct, because all of the text should be added as a single Text instance, see 

https://github.com/andy-goryachev-oracle/MonkeyTest/blob/e361b7800b5497da5e23a7eda26084e800410f38/src/com/oracle/tools/fx/monkey/util/Templates.java#L60

and

https://github.com/andy-goryachev-oracle/MonkeyTest/blob/e361b7800b5497da5e23a7eda26084e800410f38/src/com/oracle/tools/fx/monkey/pages/TextFlowPage.java#L208

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

PR Comment: https://git.openjdk.org/jfx/pull/1157#issuecomment-1609975167


More information about the openjfx-dev mailing list