1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

TextEditor: Allow soft breaks inside words in multi-line mode

This restores the JUCE 7 behaviour.
This commit is contained in:
attila 2025-06-03 15:16:33 +02:00 committed by Attila Szarvas
parent 492738c9c5
commit 8ea8cdac6d

View file

@ -951,7 +951,8 @@ void TextEditor::updateBaseShapedTextOptions()
.withLeading (lineSpacing);
if (wordWrap)
options = options.withWordWrapWidth ((float) getMaximumTextWidth());
options = options.withWordWrapWidth ((float) getMaximumTextWidth())
.withAllowBreakingInsideWord();
else
options = options.withAlignmentWidth ((float) getMaximumTextWidth());