Skip to content

Mat-Table : Add vertical scrolling only on mat rows and not on mat header row. #10698

@razorhenry1

Description

@razorhenry1

Bug, feature request, or proposal:

Proposal

What is the expected behavior?

Scroll should start from mat-rows ( tbody ) and not mat-header-rows (thead) .

What is the current behavior?

Right now , adding a scroll to mat-table, adds an overflow, starting from the header row level.

What are the steps to reproduce?

https://stackblitz.com/angular/jxdglymymvg?file=app%2Ftable-filtering-example.ts
Scroll appears at thead level ( mat-header- rows )

What is the use-case or motivation for changing an existing behavior?

The header usually remained fixed and overflow starts from tbody level.

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

Angular Version : 5.1
Angular Material Version : 5.1.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions