FPPopover icon indicating copy to clipboard operation
FPPopover copied to clipboard

border=NO doesn't work when FPPopoverNoArrow

Open jneiluj opened this issue 11 years ago • 2 comments

When selecting border = NO and arrowDirection = FPPopoverNoArrow, the top of fppopover still display even if viewController.title = nil.

This issues is reproduced only with FPPopoverNoArrow

jneiluj avatar Oct 09 '13 08:10 jneiluj

In FPPopoverView.m change line 507: contentRect.origin = CGPointMake(10,30) to: contentRect.origin = CGPointMake(10,10)

delanohelio avatar Jan 16 '14 19:01 delanohelio

My fix is to add one more checking at FPPopoverView.m line 511:

    if (self.border == NO) {
        contentRect.origin = CGPointMake(10, 10);
        contentRect.size = CGSizeMake(self.bounds.size.width-20, self.bounds.size.height-20);
    }

The unwanted title will be re-created if pushing a `UINavigation`` into FPPopover

horaceho avatar Apr 09 '14 08:04 horaceho