Blocks :
|
|
Blocks :
|
|
Relates :
|
TextFlow.caretShape() produces incorrect caret paths in the presence of inline Nodes, as can be seen using the Monkey Tester TextFlow Page (see attached screenshots). The code that visualizes caret shape iterates over the length of text, appending PathElements obtained from caretShape() for each position in the text: TextFlow control = ... for(int i=0; i<len; i++) { PathElement[] es = control.caretShape(i, true); caretPath.getElements().addAll(es); } To reproduce, select Text: "Inline Nodes" and check 'show caret path'. Monkey Tester: https://github.com/andy-goryachev-oracle/Test/blob/main/src/goryachev/monkey/MonkeyTesterApp.java
|