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
Line wraps of just a few characters don't work properly in CodeAreas. To see the problem, do the following:
Take the JavaKeywords.java demo and insert the following line at line 84:
codeArea.setWrapText(true);
Now run the demo. The following two actions show the problem:
Start typing on a line to make the line long enough to cause wrap. The first few characters that are wrapped overlap the characters on the next line instead of appearing on their own line. Eventually, the wrapped characters appear on their own line, as they should.
Grab the right edge of the window and slowly move it to the left to shrink the width of the window. The text in each line will wrap when the window gets small enough, but at first each line wraps into the next line and overlaps the text on that line. Also the font is messed up. Eventually, as you keep shrinking the width of the window, the wrapped characters appear on their own line but the font is still messed up.
It is my impression that the problem is due to the line numbering. The width of the line number labels on the left side of each line doesn't seem to be taken into account when doing the wrapping.
The text was updated successfully, but these errors were encountered:
There was an issue that the width of the line number was not taken into account for height calculations, as @djskrien pointed out.
@melkhaldi I was not able to reproduce your issue, which does not involve line numbers at all. Can you please check if the issue is still present with 0.6.3 and, if possible, the latest JDK (8u40 build 23)?
Line wraps of just a few characters don't work properly in CodeAreas. To see the problem, do the following:
Take the JavaKeywords.java demo and insert the following line at line 84:
codeArea.setWrapText(true);
Now run the demo. The following two actions show the problem:
It is my impression that the problem is due to the line numbering. The width of the line number labels on the left side of each line doesn't seem to be taken into account when doing the wrapping.
The text was updated successfully, but these errors were encountered: