Open Alex-Tsyganok opened 7 years ago
Looks like another case of offset bounds checking. I wonder if this is already fixed by https://github.com/swimlane/ngx-datatable/pull/980
@amcdnl Might be a dup of https://github.com/swimlane/ngx-datatable/issues/978
This is a problem with the virtualization scroller not updating its scrollTop.
As a workaround we can do this.table.bodyComponent.offsetY = 0;
every time we load a new set of rows where this.table
is the @ViewChild(DatatableComponent)
I'm submitting a ... (check one with "x")
Current behavior When rows filtered in virtual scrolling model, scroll position is not resets, and rows rendered with offset.
Expected behavior Correct rows rendering
Reproduction of the problem Open demo Scroll grid several rows down Apply filter that returns empty rows collection by clicking toggle filter button Remove filter by clicking toggle filter button
What is the motivation / use case for changing the behavior? Fix incorrect rendering
Please tell us about your environment:
Table version: 0.8.x Was an issue with 10.2.3, demo using latest version.
Angular version: 2.0.x Latest
Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ] Tested in Chrome
Language: [all | TypeScript X.X | ES6/7 | ES5] All