diff --git a/FPPopoverView.m b/FPPopoverView.m index f3bf62e..bd50ed4 100644 --- a/FPPopoverView.m +++ b/FPPopoverView.m @@ -480,7 +480,7 @@ -(void)setupViews { contentRect.origin = CGPointMake(10, 40); contentRect.size = CGSizeMake(self.bounds.size.width-40, self.bounds.size.height-50); - _titleLabel.frame = CGRectMake(10, 10, self.bounds.size.width-20, 20); + _titleLabel.frame = CGRectMake(10, 10, self.bounds.size.width-20-FP_POPOVER_ARROW_HEIGHT, 20); if (self.title==nil || self.title.length==0) { contentRect.origin = CGPointMake(10, 10); contentRect.size = CGSizeMake(self.bounds.size.width-40, self.bounds.size.height-20); @@ -491,7 +491,7 @@ -(void)setupViews { contentRect.origin = CGPointMake(10 + FP_POPOVER_ARROW_HEIGHT, 40); contentRect.size = CGSizeMake(self.bounds.size.width-40, self.bounds.size.height-50); - _titleLabel.frame = CGRectMake(10, 10, self.bounds.size.width-20, 20); + _titleLabel.frame = CGRectMake(10+FP_POPOVER_ARROW_HEIGHT, 10, self.bounds.size.width-20-FP_POPOVER_ARROW_HEIGHT, 20); if (self.title==nil || self.title.length==0) { contentRect.origin = CGPointMake(10+ FP_POPOVER_ARROW_HEIGHT, 10); contentRect.size = CGSizeMake(self.bounds.size.width-40, self.bounds.size.height-20);