Skip to content

Commit 8741f90

Browse files
chromadevlabsszarvas
authored andcommitted
TooltipWindow: Enable by-char breaking for the tooltip text
1 parent 8dc4dcd commit 8741f90

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

modules/juce_gui_basics/detail/juce_LookAndFeelHelpers.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ struct LookAndFeelHelpers
5959
const int maxToolTipWidth = 400;
6060

6161
AttributedString s;
62+
s.setWordWrap (AttributedString::WordWrap::byChar);
6263
s.setJustification (Justification::centred);
6364
s.append (text, FontOptions (tooltipFontSize, Font::bold).withMetricsKind (metrics), colour);
6465

0 commit comments

Comments
 (0)