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

Wrong arrow position in Popover component #3391

Closed
1 of 4 tasks
pavelkornev opened this issue Jun 4, 2021 · 1 comment · Fixed by #3821
Closed
1 of 4 tasks

Wrong arrow position in Popover component #3391

pavelkornev opened this issue Jun 4, 2021 · 1 comment · Fixed by #3821
Assignees
Labels
bug This issue is a bug in the code Medium Prio SAP Graph TOPIC RD

Comments

@pavelkornev
Copy link
Member

pavelkornev commented Jun 4, 2021

Bug Description

When using a reference example for ShellBar component (https://sap.github.io/ui5-webcomponents/playground/components/ShellBar/) the Popover arrow is wrongly positioned:
Screenshot 2021-06-04 at 08 58 55

Sometimes it's positioned correctly, depends on the width of the content part of Popover...

Expected Behavior

Popover arrow should point to the middle part of Avatar component and should not depend on content width.

Steps to Reproduce

See example below.

Isolated Example

https://codesandbox.io/s/ui5-webcomponents-forked-92x4n?file=/index.html

Context

  • UI5 Web Components version: 1.0.0-rc.14
  • OS/Platform: macOS 11.2.3
  • Browser: Chome 90.0.4430.212
  • Affected component: Popover

Log Output / Stack Trace / Screenshots

N/A

Priority

  • Low
  • Medium
  • High
  • Very High

Stakeholder Info (if applicable)

  • Organization: SAP Graph
  • Business impact: -
@pavelkornev pavelkornev changed the title Wrong arrow position in Tooltip Wrong arrow position in Popover component Jun 4, 2021
@dobrinyonkov dobrinyonkov self-assigned this Jun 4, 2021
@dobrinyonkov dobrinyonkov added bug This issue is a bug in the code Medium Prio TOPIC RD labels Jun 4, 2021
@dobrinyonkov
Copy link
Contributor

Hello @SAP/ui5-webcomponents-topic-rd,

this issue is about misalignment of the arrow of the popover (the arrow is not displayed at the center of the opener).

CPT2106041533-532x110

Here is a more isolated example: https://codesandbox.io/s/ui5-webcomponents-forked-8l197?file=/src/index.js
It is only reproducible if a long ui5-title is used in the popover. If just a text or div/h1/h2 etc. elements are used - the issue is no longer reproducible.

Kind Regards,
Dobrin

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 Graph TOPIC RD
Projects
Status: Completed
Development

Successfully merging a pull request may close this issue.

3 participants