andreamazz / andreamazz/AMPopTip

CustomViews Moved to Top of PopTip when Direction Set

Offen
#209 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Swift
Sterne
3.3k
Forks
449
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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](https://user-images.githubusercontent.com/25909458/89551969-c9f61480-d7c8-11ea-944a-4b49c8f7126f.png)
![Screen Shot 2020-08-06 at 9 34 43 AM](https://user-images.githubusercontent.com/25909458/89551985-ccf10500-d7c8-11ea-9e36-4d337f4bf067.png)

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.