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

setArrowOrientationRules(ArrowOrientationRules.ALIGN_ANCHOR) does not work on a custom layout. #397

Closed
MKadykov opened this issue Jan 3, 2023 · 7 comments
Assignees
Labels
bug Something isn't working Released Released already on the latest version.

Comments

@MKadykov
Copy link

MKadykov commented Jan 3, 2023

Please complete the following information:

  • Library Version 1.4.8
  • Affected Device(s) Huawei P20

Describe the Bug:

Maybe I'm wrong, but I understand that when I set ArrowOrientationRules.ALIGN_ANCHOR, the arrow should automatically turn towards the "anchor", is that right? At the same time, setArrowOrientation should either be omitted or ignored. But, in this case, I always have an arrow at the bottom, although, the anchor object is located on the right.

@skydoves
Copy link
Owner

skydoves commented Jan 3, 2023

Hey @MKadykov, could you share any screenshots or the layouts that should be shown with the balloon? I guess the size of your anchor view is already huge so the balloon keeps showing on the top side. And in most cases, if the layout is not dynamically changed, I would recommend you fix the position of the arrow.

@MKadykov
Copy link
Author

MKadykov commented Jan 4, 2023

Thanks for the quick response!
Yes, I had to set a fixed arrow position. But this position is different for portrait and landscape orientation, so I had to write additional code. But it's not scary.
But I'm just wondering why setArrowOrientationRules(ArrowOrientationRules.ALIGN_ANCHOR) doesn't work for me. This is how it should look like (the position of the arrow is fixed)

image

And this is what happens if the arrow is not fixed

image

@skydoves
Copy link
Owner

skydoves commented Jan 5, 2023

@MKadykov Thanks for sharing the details! I see this is kind of a bug, so let me fix the issue in the next release. Thank you!

@skydoves skydoves self-assigned this Jan 5, 2023
@skydoves skydoves added the bug Something isn't working label Jan 5, 2023
@skydoves skydoves added the Release Next This feature will be released on next version label Jan 6, 2023
@skydoves
Copy link
Owner

skydoves commented Jan 6, 2023

It was released in version 1.5.1. Thanks!

@skydoves skydoves closed this as completed Jan 6, 2023
@skydoves skydoves added Released Released already on the latest version. and removed Release Next This feature will be released on next version labels Jan 6, 2023
@MKadykov
Copy link
Author

MKadykov commented Jan 10, 2023 via email

@MKadykov
Copy link
Author

Sorry, but with the upgrade to 1.5.1, the problem has not disappeared. The arrow does not readjust to the anchor, but always at the bottom.

@engzia
Copy link

engzia commented Feb 21, 2024

Hi, I am facing the same issue. ALIGN_ANCHOR doesn't work with showAlignLeft() and showAlignRight(). My balloon is able to show in the correct side of the anchor but the arrow is always pointing to the bottom.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Released Released already on the latest version.
Projects
None yet
Development

No branches or pull requests

3 participants