diff --git a/TSPopover/TSPopoverController.m b/TSPopover/TSPopoverController.m index fb2fc74..41b6e59 100644 --- a/TSPopover/TSPopoverController.m +++ b/TSPopover/TSPopoverController.m @@ -251,7 +251,9 @@ - (CGRect) contentFrameRect:(CGRect)contentFrame senderPoint:(CGPoint)senderPoin contentFrameRect.origin.x = MARGIN; contentFrameRect.origin.y = MARGIN; - float statusBarHeight = [[UIApplication sharedApplication] statusBarFrame].size.height; + float statusBarHeight = screenWidth > screenHeight ? + [[UIApplication sharedApplication] statusBarFrame].size.width : + [[UIApplication sharedApplication] statusBarFrame].size.height; if(self.arrowPosition == TSPopoverArrowPositionVertical){