1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

CDK Virtual Scrolling Issue with maxBufferPx not displaying full list

Discussão em 'Angular' iniciado por Lucas_Nt, Setembro 28, 2024.

  1. Lucas_Nt

    Lucas_Nt Guest

    I'm implementing CDK Virtual Scrolling for a large list, and while scrolling works smoothly with just minBufferPx, I'm having issues when adding maxBufferPx. Without it, I get this console error:

    Error: CDK virtual scroll: maxBufferPx must be greater than or equal to minBufferPx

    However, when I set minBufferPx to 500 and maxBufferPx to 1000, the list stops rendering all items and only a few are displayed. I feel like I'm missing something simple but can't quite figure it out.

    Here’s a demo I've prepared that replicates my issue.

    Any suggestions/thoughts?

    Continue reading...

Compartilhe esta Página