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:
parent
492738c9c5
commit
8ea8cdac6d
1 changed files with 2 additions and 1 deletions
|
|
@ -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());
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue