Expected Behavior
When I added hyperlinks and images to Jugen's StyledSegmentTextArea, I was hoping the hyperlinks would work.
Actual Behavior
The first and third hyperlinks in the demo behave correctly, but the second hyperlink in the demo is somehow corrupted:
- mouse-hovering over it produces lots of calls to createNode (see stdout of the program)
- hovering does not cause the hyperlink to become underlined
- clicking the link does not execute its handler
Reproducible Demo
The source files are here: https://github.com/Kim4444/RichTextFXIssue
Demo Notes: First I downloaded the files at https://github.com/Jugen/StyledSegmentTextArea. I tweaked the source slightly, then added HyperlinkSegment and ImageSegment. I also use ReadOnlyStyledDocumentBuilder so I could build the doc one paragraph at a time. I tried to make as few changes to Jugen's demo as I could. There are more details in the demo file CodeChanges.txt. I am uncertain if it is a bug in my code, or in RichTextFX/supporting classes. Thank you so much for any help!
Environment info:
- RichTextFX Version: 0.9.3
- Flowless 0.6.1
- ReactFX 2.0-M5
- UndoFX 2.1.0
- WellBehavedFX 0.3.3
- Operating System: Windows 10
- Java version: 8u181
Expected Behavior
When I added hyperlinks and images to Jugen's StyledSegmentTextArea, I was hoping the hyperlinks would work.
Actual Behavior
The first and third hyperlinks in the demo behave correctly, but the second hyperlink in the demo is somehow corrupted:
Reproducible Demo
The source files are here: https://github.com/Kim4444/RichTextFXIssue
Demo Notes: First I downloaded the files at https://github.com/Jugen/StyledSegmentTextArea. I tweaked the source slightly, then added HyperlinkSegment and ImageSegment. I also use ReadOnlyStyledDocumentBuilder so I could build the doc one paragraph at a time. I tried to make as few changes to Jugen's demo as I could. There are more details in the demo file CodeChanges.txt. I am uncertain if it is a bug in my code, or in RichTextFX/supporting classes. Thank you so much for any help!
Environment info: