We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
My mat-table has 3 header rows. The first one is sticky: false and the other two are sticky: true, the sticky header keep scrolling with the content.
The text was updated successfully, but these errors were encountered:
I dont know if you still need it but I made a local hotfix for this broken behaviour
you can apply the same for the setStickyFooter
private setStickyHeader(offset: number) { let stickyOffset = offset; this.scrollStrategy.viewport.elementRef.nativeElement .querySelectorAll(stickyHeaderSelector) .forEach((el: Element) => { const parent = el.parentElement; if (!parent) return; let baseOffset = 0; if (this.stickyPositions?.has(parent)) { baseOffset = this.stickyPositions.get(parent)!; } el.setAttribute('style', `${el.getAttribute('style')} top: ${baseOffset + offset + stickyOffset}px`); stickyOffset+= el.getBoundingClientRect().height; }); }
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
My mat-table has 3 header rows. The first one is sticky: false and the other two are sticky: true, the sticky header keep scrolling with the content.
The text was updated successfully, but these errors were encountered: