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

p-overlay: Overlay component does not resize correctly #12769

Closed
DavideMin opened this issue Mar 20, 2023 · 1 comment · Fixed by #12799
Closed

p-overlay: Overlay component does not resize correctly #12769

DavideMin opened this issue Mar 20, 2023 · 1 comment · Fixed by #12799
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@DavideMin
Copy link

Describe the bug

When resizing window, the overlay does not resize accordingly.
Screenshot 2023-03-20 100829

Environment

primeng: "^15.2.0",
Angular: "^15.2.3"

Reproducer

https://stackblitz.com/edit/primeng-inputtext-demo-nhbxmk?file=src/app/app.component.ts

Angular version

15.2.3

PrimeNG version

15.2.0

Build / Runtime

Angular CLI App

Language

TypeScript

Node version (for AoT issues node --version)

v18.10.0

Browser(s)

No response

Steps to reproduce the behavior

  1. Resize window (reduce width)
  2. Check overlay size getting focus on input

Repeat gradually reducing window width until overlay is out of the visible area but still open.

Expected behavior

No response

@DavideMin DavideMin added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Mar 20, 2023
@DavideMin
Copy link
Author

Potential cause of the issue:

Screenshot 2023-03-20 101259

get style is not applied since the ChangeDetectionStrategy is OnPush.
It would suffice to call detectChanges() on the ChangeDetectorRef if any.

volvachev added a commit to volvachev/primeng that referenced this issue Mar 23, 2023
volvachev added a commit to volvachev/primeng that referenced this issue Mar 23, 2023
@cetincakiroglu cetincakiroglu added Type: Bug Issue contains a bug related to a specific component. Something about the component is not working and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Apr 12, 2023
@cetincakiroglu cetincakiroglu added this to the 15.3.1 milestone Apr 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants