diff --git a/modules/juce_gui_basics/native/juce_mac_NSViewComponentPeer.mm b/modules/juce_gui_basics/native/juce_mac_NSViewComponentPeer.mm index b90b78944e..4971c5fec3 100644 --- a/modules/juce_gui_basics/native/juce_mac_NSViewComponentPeer.mm +++ b/modules/juce_gui_basics/native/juce_mac_NSViewComponentPeer.mm @@ -2055,7 +2055,12 @@ private: static NSRect constrainFrameRect (id self, SEL, NSRect frameRect, NSScreen* screen) { if (auto* owner = getOwner (self)) + { + frameRect = sendSuperclassMessage (self, @selector (constrainFrameRect:toScreen:), + frameRect, screen); + frameRect = owner->constrainRect (frameRect); + } return frameRect; }