Skip to content

Commit

Permalink
fix(ngrid): calculate vScroll height when ready
Browse files Browse the repository at this point in the history
  • Loading branch information
shlomiassaf committed May 8, 2019
1 parent 18992c0 commit 6a41cd0
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -225,9 +225,9 @@ export class PblCdkVirtualScrollViewportComponent extends CdkVirtualScrollViewpo

setTotalContentSize(size: number) {
super.setTotalContentSize(size);
Promise.resolve().then(() => {
requestAnimationFrame(() => {
this.scrollHeight = this.elementRef.nativeElement.scrollHeight; //size;
});
})
}

checkViewportSize() {
Expand Down

0 comments on commit 6a41cd0

Please sign in to comment.