Skip to content

Commit a37dbee

Browse files
committed
fixup! feat(cdk/scrolling): make scroller element configurable for virtual scrolling
1 parent 5374edf commit a37dbee

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,13 +75,12 @@ cdk-virtual-scroll-viewport {
7575
.cdk-virtual-scroll-spacer {
7676
height: 1px;
7777
transform-origin: 0 0;
78+
flex: 0 0 auto; // prevents spacer from collapsing if display: flex is applied
7879

7980
// Note: We can't put `will-change: transform;` here because it causes Safari to not update the
8081
// viewport's `scrollHeight` when the spacer's transform changes.
8182

8283
[dir='rtl'] & {
83-
right: 0;
84-
left: auto;
8584
transform-origin: 100% 0;
8685
}
8786
}

0 commit comments

Comments
 (0)