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

Placing a popover when it is too large for the available space on the screen #10

Closed
wants to merge 2 commits into from

Conversation

ntamas
Copy link

@ntamas ntamas commented May 31, 2011

I have a situation in my app where the popover to be opened is too large to fit to the screen with any arrow placement, and thus the popover won't open at all. This patch modifies the behaviour of WEPopover to make the popover smaller as necessary in such situations instead of not opening it at all.

Such a situation usually does not arise on the iPad but can happen frequently on the iPhone, so IMHO it's good to have some fallback mechanism in place for such situations even if it is not 100% compatible with the behaviour of the original UIPopoverController.

Also added the "properties" property to WEPopoverContainerView which seemed to be missing.

werner77 added a commit that referenced this pull request Jun 13, 2011
@werner77 werner77 closed this Jun 13, 2011
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

Successfully merging this pull request may close these issues.

None yet

2 participants