For example when the font size is changed from 20 to 10 using
CodeArea.setStyle("-fx-font-size:10;");
the line space is not adjusted automatically. It seems that it retains the former line space. Manual resizing the window corrects the problem.
Is there any way to an 'invalidate()' method to force repaint the entire CodeArea?
video clip:
http://www.youtube.com/watch?v=4-oKqV86uB8&feature=youtu.be
For example when the font size is changed from 20 to 10 using
the line space is not adjusted automatically. It seems that it retains the former line space. Manual resizing the window corrects the problem.
Is there any way to an 'invalidate()' method to force repaint the entire CodeArea?
video clip:
http://www.youtube.com/watch?v=4-oKqV86uB8&feature=youtu.be