Skip to content

Commit 20b4a33

Browse files
committed
Small tooltip fix
1 parent 2fab3ba commit 20b4a33

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Source/LookAndFeel.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -769,9 +769,10 @@ void PlugDataLook::drawTooltip(Graphics& g, String const& text, int width, int h
769769
}
770770
}
771771

772+
auto textOffset = ProjectInfo::canUseSemiTransparentWindows() ? 10 : 0;
772773
TextLayout tl;
773774
tl.createLayoutWithBalancedLineLengths(s, (float)maxToolTipWidth);
774-
tl.draw(g, bounds.withSizeKeepingCentre(width - 28, height - 14));
775+
tl.draw(g, bounds.withSizeKeepingCentre(width - (20 + textOffset), height - (2 + textOffset)));
775776
}
776777

777778
Font PlugDataLook::getComboBoxFont(ComboBox& box)

0 commit comments

Comments
 (0)