You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In a standard <p-listbox>, the height is limited to 200px due to a style="max-height: 200px" being placed on the <div> with the p-listbox-list-wrapper class:
So sorry for the delayed response! Improvements have been made to many components recently, both in terms of performance and enhancement. Therefore, this improvement may have been developed in another issue ticket without realizing it. You can check this in the documentation. If there is no improvement on this, can you open a new issue so we can include it in our roadmap?
Thanks a lot for your understanding!
Best Regards,
Describe the bug
In a standard
<p-listbox>
, the height is limited to 200px due to astyle="max-height: 200px"
being placed on the<div>
with thep-listbox-list-wrapper
class:The relevant area in the source is:
A workaround is to set
[scrollHeight]="'auto'"
on the<p-listbox>
.Note in Stackblitz, when rendered, height is capped and you get a scrollbar:
Environment
PrimeNG 17.5 (also occurs with 17.4)
Angular 17.1.0
Reproducer
https://stackblitz.com/edit/github-zmo9ym?file=src%2Fapp%2Fapp.component.ts
Angular version
17.1.0
PrimeNG version
17.5
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
20.11.0
Browser(s)
No response
Steps to reproduce the behavior
Example and StackBlitz repro provided
Expected behavior
No
max-width
style placed by default.The text was updated successfully, but these errors were encountered: