Skip to content

Commit 1535ad3

Browse files
committed
Fix callout box border on Mac
1 parent 2e15420 commit 1535ad3

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

JuceLibraryCode/modules/juce_gui_basics/native/juce_mac_NSViewComponentPeer.mm

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,11 @@ static NSRect flippedScreenRect (NSRect r) noexcept
138138
[window setDelegate: window];
139139
#endif
140140
[window setOpaque: component.isOpaque()];
141+
142+
#if defined (MAC_OS_X_VERSION_10_14)
143+
if (! [window isOpaque])
144+
[window setBackgroundColor: [NSColor clearColor]];
145+
#endif
141146
[window setHasShadow: ((windowStyleFlags & windowHasDropShadow) != 0)];
142147

143148
if (component.isAlwaysOnTop())

0 commit comments

Comments
 (0)