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

[Popover | UDEx | 1.24.9]: Popover Arrow is misplaced when Box next to top/bottom #9886

Open
1 task done
calmon opened this issue Sep 17, 2024 · 1 comment
Open
1 task done
Labels
bug This issue is a bug in the code Medium Prio SAP UDEx TOPIC RD

Comments

@calmon
Copy link

calmon commented Sep 17, 2024

Bug Description

Popover Component Arrow is missplaced as soon as the box doesn't have enough space.

Affected Component

Popover

Expected Behaviour

Expect: The Arrow is alligned to the mid of the button
Instead it's either bottom or top (depending the popup box is close to top/bottom), see screenshot

Isolated Example

No response

Steps to Reproduce

  1. Check out: https://sap.github.io/ui5-webcomponents/v1/components/Popover/
  2. Give the button (id="btn") some margin-top: 50px
  3. click the button

Expect: The Arrow is alligned to the mid of the button
Instead it's either bottom or top (depending the popup box is close to top/bottom), see screenshot

Log Output, Stack Trace or Screenshots

image

Priority

None

UI5 Web Components Version

1.24.9 but it's also in 2.2.0

Browser

Chrome

Operating System

MacOS

Additional Context

No response

Organization

No response

Declaration

  • I’m not disclosing any internal or sensitive information.
@calmon calmon added the bug This issue is a bug in the code label Sep 17, 2024
@calmon calmon changed the title [Popover | UDEx | 1.24.9]: Popover Arrow is missplaced when Box next to top/bottom [Popover | UDEx | 1.24.9]: Popover Arrow is misplaced when Box next to top/bottom Sep 17, 2024
@IlianaB
Copy link
Member

IlianaB commented Sep 18, 2024

Hello @ui5-webcomponents-topic-rd, please have a look at this issue. It seems the Popover arrow is misplaced, when you add to its opener margin-top or margin-bottom, which move it to close to the top/bottom of the container (as reported). For me, the arrow seems misplaced (not at the center) even without additional margins.

Regards,
Iliana

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue is a bug in the code Medium Prio SAP UDEx TOPIC RD
Projects
Status: New Issues
Development

No branches or pull requests

3 participants