Skip to content

Commit 6ee9149

Browse files
mmalerbavivian-hu-zz
authored andcommitted
fix(virtual-scroll): don't set both right and left on the content (#13412)
wrapper Otherwise it prevents the horizontal scrollbar from showing when `contain: content` is used. Fixes #13231
1 parent 8dfd2ee commit 6ee9149

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/cdk/scrolling/virtual-scroll-viewport.scss

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,10 @@ cdk-virtual-scroll-viewport {
5656
}
5757

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

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

0 commit comments

Comments
 (0)