I encountered some incorrect behavior of GenericStyledArea.getStyleRangeAtPosition(int position) in version 0.8.*
Here goes the detail:
InlineCssTextArea area = new InlineCssTextArea();
area.appendText("1234567890");
area.setStyle(5, 7, "-fx-fill:red;");
System.out.println(area.getStyleRangeAtPosition(6)); //expect '5,7' but print '0,5'
System.out.println(area.getStyleRangeAtPosition(8)); //expect '7,10' but print '0,5'
If I switch to version 0.7-M5, the result meets my expectation, which is '5,7' and '7,10'. But with 0.8.0, 0.8.1 or 0.8.2, the result is wrong.
I encountered some incorrect behavior of GenericStyledArea.getStyleRangeAtPosition(int position) in version 0.8.*
Here goes the detail:
If I switch to version 0.7-M5, the result meets my expectation, which is '5,7' and '7,10'. But with 0.8.0, 0.8.1 or 0.8.2, the result is wrong.