Skip to content

Commit

Permalink
fix(scrollview): correct translate direction in rtl
Browse files Browse the repository at this point in the history
  • Loading branch information
silviyaboteva authored and joneff committed Dec 15, 2021
1 parent 601e7e8 commit 0f896a5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/default/scss/scrollview/_layout.scss
Expand Up @@ -2,7 +2,7 @@

kendo-scrollview.k-scrollview-wrap,
kendo-scrollview.k-scrollview,
.k-widget.k-scrollview {
.k-scrollview {
border-width: $scrollview-border-width;
border-style: solid;
box-sizing: border-box;
Expand Down Expand Up @@ -61,6 +61,11 @@
width: calc( 100% / var(--kendo-scrollview-views, 1) );
flex: 0 0 calc( 100% / var(--kendo-scrollview-views, 1) );
}

[dir="rtl"] &,
.k-rtl & {
transform: translateX( calc( 100% / var(--kendo-scrollview-views, 1) * ( var(--kendo-scrollview-current, 1) - 1) ) );
}
}


Expand Down

0 comments on commit 0f896a5

Please sign in to comment.