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

Popup: misalignment when the trigger button is in the right corner #17501

Open
4 tasks
itismohammadreza opened this issue Jan 26, 2025 · 1 comment
Open
4 tasks
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible

Comments

@itismohammadreza
Copy link
Contributor

Describe the bug

When the trigger button for the popup component is placed in the right corner of the screen, the popup's triangle (caret) does not align correctly with the button.

Image

Pull Request Link

No response

Reason for not contributing a PR

  • Lack of time
  • Unsure how to implement the fix/feature
  • Difficulty understanding the codebase
  • Other

Other Reason

No response

Reproducer

https://stackblitz.com/edit/twjffqjr?file=src%2Fapp%2Fimports.ts,src%2Fapp%2Fpopover-basic-demo.html

Environment

windows

Angular version

19.0.0

PrimeNG version

v19

Node version

No response

Browser(s)

No response

Steps to reproduce the behavior

  1. Place the popup trigger button at the right corner of the screen.
  2. Click on the button to open the popup.
  3. Observe the position of the caret in relation to the button.

Expected behavior

The triangle should remain perfectly aligned with the centre of the button, regardless of its position on the screen.

@itismohammadreza itismohammadreza added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Jan 26, 2025
@rosenthalj
Copy link
Contributor

Is this a duplicate issue to "Component Popover pointing at wrong area" #16406

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
Projects
None yet
Development

No branches or pull requests

2 participants