Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Popover is drawn with ContentSize smaller than specified #7

Closed
romanr opened this issue Jun 18, 2012 · 2 comments
Closed

Popover is drawn with ContentSize smaller than specified #7

romanr opened this issue Jun 18, 2012 · 2 comments

Comments

@romanr
Copy link
Contributor

romanr commented Jun 18, 2012

The contentSize.width becomes not a content controller width but whole popover (chrome) outer width.
contentSize.height appears to be subtracted by 40 -60 from contentSize passed to FPPopover.

Most evident if you create popover and specify:

popover.contentSize = CGSizeMake(100, 100);

Then measure what is on the screen (using XScope or similar). ContentSize will be 80x40! And popover size is 100x80.

@sebastianwr
Copy link

I can confirm this. Workaround is to just add 20/40 pixels to the contentSize, so that the content actually matches. But I don't think that this is desired by any developer.

@ghost
Copy link

ghost commented Nov 9, 2012

I've changed these assumptions in my fork. But i'm not sure if its good enough for everybody else.

@alvises alvises closed this as completed Feb 11, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants