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

OverlayPanel: wrong position after expanding body #5058

Closed
pawelnykun opened this issue Jan 11, 2024 · 1 comment · Fixed by #5072
Closed

OverlayPanel: wrong position after expanding body #5058

pawelnykun opened this issue Jan 11, 2024 · 1 comment · Fixed by #5072
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible

Comments

@pawelnykun
Copy link

pawelnykun commented Jan 11, 2024

Describe the bug

It seems that after expanding/collapsing the body section, the OverlayPanel does not get positioned correctly.

Reproducer

https://codesandbox.io/p/devbox/immutable-dust-yrhdjl?file=%2Fsrc%2FApp.vue

PrimeVue version

3.45.0

Vue version

3.x

Language

TypeScript

Build / Runtime

Vue CLI App

Browser(s)

No response

Steps to reproduce the behavior

  1. Go to link
  2. Click "Show OverlayPanel" button to show OverlayPanel
  3. Click "Add more content to body" button a few times

Expected behavior

The OverlayPanel should recalculate self position every time when body section gets expanded/collapsed

@pawelnykun pawelnykun 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 11, 2024
@mertsincan
Copy link
Member

Hi,

You can use alignOverlay method of OverlayPanel. Please try;
https://codesandbox.io/p/devbox/crazy-haslett-cz45r3?file=%2Fsrc%2FApp.vue%3A17%2C6

Best Regards,

Magiczne pushed a commit to Magiczne/primevue that referenced this issue Jan 12, 2024
mertsincan pushed a commit that referenced this issue Jan 12, 2024
Co-authored-by: Michał Kleszczyński <michal.kleszczynski@unitgroup.com>
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

Successfully merging a pull request may close this issue.

2 participants