Skip to content

Commit

Permalink
perf(tabs): avoid repainting while scrolling
Browse files Browse the repository at this point in the history
Along the same lines as angular#7721, angular#7719 and angular#6890 the tab body currently repaints on scroll.
  • Loading branch information
crisbeto committed Oct 18, 2017
1 parent 4fc3a0b commit 03d41d2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/tabs/tab-body.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
.mat-tab-body-content {
height: 100%;
overflow: auto;
backface-visibility: hidden; // Avoids repainting while scrolling.

.mat-tab-group-dynamic-height & {
overflow: hidden;
Expand Down

0 comments on commit 03d41d2

Please sign in to comment.