orizens / ngx-infinite-scroll

Infinite Scroll Directive for Angular
https://www.npmjs.com/package/ngx-infinite-scroll
MIT License
1.23k stars 224 forks source link

how do you set the [horizontal] value based on the width of the parent? #411

Closed mcferren closed 1 month ago

mcferren commented 1 year ago

I am trying to set horizontal boolean based on the width of the parent but it looks like, because the variable is set inside ngAfterViewInit, the inifinite scroll directive is not accepting the defined boolean value; Because the resulting behavior in the GUI shows it is always interpreting it as falsy

image image image image

how do you set the [horizontal] value based on the width of the parent?