Skip to content

Commit

Permalink
fix(virtual-scroll): don't set both right and left on the content (
Browse files Browse the repository at this point in the history
…#13412)

wrapper

Otherwise it prevents the horizontal scrollbar from showing when
`contain: content` is used. Fixes #13231
  • Loading branch information
mmalerba authored and vivian-hu-zz committed Oct 4, 2018
1 parent 8dfd2ee commit 6ee9149
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/cdk/scrolling/virtual-scroll-viewport.scss
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,10 @@ cdk-virtual-scroll-viewport {
}

.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper {
bottom: 0;
@include _cdk-virtual-scroll-clear-container-space(horizontal);
}

.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper {
right: 0;
@include _cdk-virtual-scroll-clear-container-space(vertical);
}

Expand Down

0 comments on commit 6ee9149

Please sign in to comment.