mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-07-19 14:18:07 +00:00
wordwrap fix
This commit is contained in:
@@ -829,10 +829,12 @@ public class DefineEditTextTag extends TextTag {
|
||||
for (Word word : paragraph.words) {
|
||||
if (lineLength + word.width <= bounds.getWidth()) {
|
||||
line.addAll(word.records);
|
||||
lineLength += word.width;
|
||||
} else {
|
||||
lines.add(line);
|
||||
line = new ArrayList<>();
|
||||
line.addAll(word.records);
|
||||
lineLength = 0;
|
||||
}
|
||||
}
|
||||
if (!line.isEmpty()) {
|
||||
|
||||
Reference in New Issue
Block a user