You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Inserting a long line such as JsonReader json = new JsonReader(new InputStreamReader(Editor.class.getResourceAsStream("/syntax/java.json"))); should remain on a single line. Changing the window size, or inserting additional characters on the line should have the line still occupy one visual line.
Actual Behavior
Upon inserting a character, the line wraps. Any further interaction resets to the expected wrapping behavior.
Deleting characters does not trigger the bug, only insertions.
java_EIh6KOQQx8.mp4
Reproducible Demo
publicclassBugextendsApplication {
publicvoidstart(StageprimaryStage) {
CodeAreaarea = newCodeArea();
area.setWrapText(false); // at runtime, just paste your long text in since its the interaction of insertion by the user that triggers thisprimaryStage.setScene(newScene(newBorderPane(area)));
primaryStage.show();
}
}
Expected Behavior
Given the following code:
Inserting a long line such as
JsonReader json = new JsonReader(new InputStreamReader(Editor.class.getResourceAsStream("/syntax/java.json")));should remain on a single line. Changing the window size, or inserting additional characters on the line should have the line still occupy one visual line.Actual Behavior
Upon inserting a character, the line wraps. Any further interaction resets to the expected wrapping behavior.
Deleting characters does not trigger the bug, only insertions.
java_EIh6KOQQx8.mp4
Reproducible Demo
Environment info:
0.11.0