Skip to content

Commit

Permalink
Fix: Ensure p-scroller updates height after clearing filters (#16954) (
Browse files Browse the repository at this point in the history
…#16979)

* Create npm-grunt.yml

Do ewentualnej modyfikacji w przyszłości

* create an index.html file

* Update index.html

* Update index.html

* Fix: Improve dynamic styling for avatar component

* Remove unnecessary files

* Fix dropdown virtual scroll filter bug

* Restore changes for previous issue

* Restore changes for previous issu

---------

Co-authored-by: Mateusz Adamczyk <[email protected]>
Co-authored-by: mateuszstudentzero <[email protected]>
  • Loading branch information
3 people authored Dec 9, 2024
1 parent 9df2f0b commit 5ce92d2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/app/components/scroller/scroller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -554,6 +554,12 @@ export class Scroller implements OnInit, AfterContentInit, AfterViewChecked, OnD
}
}

if (simpleChanges.items) {
this.setSpacerSize();
this.setSize();
this.cd.detectChanges();
}

if (this.initialized) {
const isChanged = !isLoadingChanged && (simpleChanges.items?.previousValue?.length !== simpleChanges.items?.currentValue?.length || simpleChanges.itemSize || simpleChanges.scrollHeight || simpleChanges.scrollWidth);

Expand Down

0 comments on commit 5ce92d2

Please sign in to comment.