Container element fo dynamic height

UI Components for Angular
Post Reply
Megarockstar
Posts: 3
Joined: 27 Apr 2021, 20:21

25 Jul 2021, 11:28

Hello

I am trying to make a forum with a virtual scroller and each element is a p-panel. However I need a dynamic height for every element since not every post is the same size.

In the virtual scroller if I set eh itemSize then every element is the same size, but if I don't set it the virtual scroller only loads the number of elements indicated in the rows property of the virtual scroller.

I have tried to assign height and margins to the classes that are rendered but nothing is working.

How do I make this work so every element has its own size and the virtual scroller loads all the elements?

Post Reply

Return to “PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 17 guests