RichTextFX icon indicating copy to clipboard operation
RichTextFX copied to clipboard

LineWrap stops working when lines are added to text that exceeds one page

Open synth3 opened this issue 8 years ago • 4 comments

I have found the following problem where line wrap stops working sometimes:

Reproduction:

  • open the RichText demo
  • turn off LineWrap
  • Paste the text from the attached file sampleContent.txt
  • add one linebreak at the end of the text content (by pressing ENTER)
  • klick at the Wrap CheckBox to turn on LineWrapping again Result: LineWrap is not applied anymore

synth3 avatar Jan 10 '17 12:01 synth3

Yup. That's a bug! but the code seems to have been implemented correctly, so I think this might be a bug with JavaFX, not with RTFX

JordanMartinez avatar Jan 11 '17 02:01 JordanMartinez

Even forcing the layout via layout does nothing.

JordanMartinez avatar Jan 11 '17 02:01 JordanMartinez

I came across this issue again in #504 when I was implementing NavigationTests.MuliLineTests. I found one solution by hiding and then re-showing the stage.

JordanMartinez avatar May 16 '17 19:05 JordanMartinez

This only happens if the vertical scrollbar IS being displayed.

Jugen avatar Mar 23 '20 10:03 Jugen