Skip to content

Commit

Permalink
fixup! feat(cdk/scrolling): make scroller element configurable for vi…
Browse files Browse the repository at this point in the history
…rtual scrolling
  • Loading branch information
spike-rabbit committed Jun 7, 2022
1 parent 5374edf commit a37dbee
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/cdk/scrolling/virtual-scroll-viewport.scss
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,12 @@ cdk-virtual-scroll-viewport {
.cdk-virtual-scroll-spacer {
height: 1px;
transform-origin: 0 0;
flex: 0 0 auto; // prevents spacer from collapsing if display: flex is applied

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

[dir='rtl'] & {
right: 0;
left: auto;
transform-origin: 100% 0;
}
}

0 comments on commit a37dbee

Please sign in to comment.