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

CustomViews Moved to Top of PopTip when Direction Set #209

Open
lpuentes19 opened this issue Aug 6, 2020 · 1 comment
Open

CustomViews Moved to Top of PopTip when Direction Set #209

lpuentes19 opened this issue Aug 6, 2020 · 1 comment

Comments

@lpuentes19
Copy link

lpuentes19 commented Aug 6, 2020

I've created a xib and have set constraints to it In the storyboard and have been adding that custom view to the popTip. Looks great on popTips when the direction is set to none, but when it's set to down, I believe this library is moving the custom view to the top of the popTip, so it overlays the arrow, which makes it seem like it's an offset bug.

Steps to reproduce the behavior:

  1. Create custom view via xib with constraints.
  2. Add customView to popTip with direction set to down.
  3. Observe how the view gets pushed up.

Expected behavior
I would expect the popTip to respect the custom views constraints.

I added some screenshots of a popTip with and without a direction set. The first is one with no direction set and looks good. But the second one has direction set and you can see it looks funky. You'll also notice there I added an alpha background to help show how the view was pushed up.

Also, this is an Objective-C project and so the version I'm using is 1.5.x. Please let me know if you have any questions. Hope you can help with this. Thanks!

Screen Shot 2020-08-06 at 9 31 18 AM
Screen Shot 2020-08-06 at 9 34 43 AM

@andreamazz
Copy link
Owner

Hey @lpuentes19
I'd appreciate if you were able to provide a sample project to diagnose the issue (or even just a b it of code to quickly reproduce it in the demo app)

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

2 participants