diff --git a/Rebel/RBLPopover.m b/Rebel/RBLPopover.m index 96c6c39..823dcbf 100644 --- a/Rebel/RBLPopover.m +++ b/Rebel/RBLPopover.m @@ -181,7 +181,7 @@ - (void)showRelativeToRect:(CGRect)positioningRect ofView:(NSView *)positioningV positioningRect = [positioningView bounds]; } - NSRect windowRelativeRect = [positioningView convertRect:positioningRect toView:nil]; + NSRect windowRelativeRect = [positioningView convertRect:[positioningView alignmentRectForFrame:positioningRect] toView:nil]; CGRect screenRect = [positioningView.window convertRectToScreen:windowRelativeRect]; self.backgroundView.popoverOrigin = screenRect;