naver / egjs-infinitegrid

A module used to arrange card elements including content infinitely on a grid layout.
https://naver.github.io/egjs-infinitegrid/
MIT License
2.23k stars 95 forks source link

[Angular] Scrolling after new items were received #469

Closed ishturmov closed 2 years ago

ishturmov commented 2 years ago

Description

Hi.

Every time, when totally new items are coming to the grid - it's automatically scrolls to the top. But I have a case when grid is under another component, and when new data came, it's scrolls directly to the top of the page, is it possible to specify element to which it should scroll?

Version 3.2.5

daybrush commented 2 years ago

@ishturmov

Do you have any test demos?

ishturmov commented 2 years ago

@daybrush sorry man, issue is not relevant, I found what happens. Previous developer was using ngIf directive on grid, and every time when there were no data, grid was hidden and I guess because of it your library was not able to find the element to scroll, and scrolled just to top.