I'm not sure if this has already been addressed in a previous issue (I tried searching to no avail), but basically I'm trying to prevent this:

The CodeArea is allocated the entire right side of the window, but since the code isn't long enough the grey line numbers abruptly cuts off, which is mildly infuriating.
The behaviour I'm trying to replicate is what RSyntaxTextArea does:

I looked through the code which handles the graphics and to be honest it went a bit over my head. Is there any way that I can get this sort of behaviour using RichTextFX? I'm ok with hacky workarounds if that's what
it takes 😄.
I'm not sure if this has already been addressed in a previous issue (I tried searching to no avail), but basically I'm trying to prevent this:
The CodeArea is allocated the entire right side of the window, but since the code isn't long enough the grey line numbers abruptly cuts off, which is mildly infuriating.
The behaviour I'm trying to replicate is what RSyntaxTextArea does:
I looked through the code which handles the graphics and to be honest it went a bit over my head. Is there any way that I can get this sort of behaviour using RichTextFX? I'm ok with hacky workarounds if that's what
it takes 😄.