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

Portrait Upside Down not working #32

Open
pnome opened this issue Apr 7, 2016 · 1 comment
Open

Portrait Upside Down not working #32

pnome opened this issue Apr 7, 2016 · 1 comment

Comments

@pnome
Copy link

pnome commented Apr 7, 2016

I love YIPopupTextView. However, it doesn't work when the device is in upside down portrait mode. Is this possible to fix?

Thanks,
Joe

@pnome
Copy link
Author

pnome commented Apr 7, 2016

It looks like the fix is this:

  case UIInterfaceOrientationPortraitUpsideDown:
                popupViewHeight = bgOrigin.y - keyboardRect.origin.y - keyboardRect.size.height - topMargin;
                popupViewHeight = -popupViewHeight; //the above returned a -ve number

I don't really know how to do updates. Maybe someone else can add that and update?

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

1 participant