fix(scrollbar): native scrollbar not hide when native is not true (#971)

negative value of margin-bottom not work in certain scenarios.
This commit is contained in:
kooriookami
2020-12-13 04:21:58 -06:00
committed by GitHub
parent 1807eaa28d
commit be7b9665bb
2 changed files with 3 additions and 3 deletions

View File

@@ -5,7 +5,7 @@
:class="[
wrapClass,
'el-scrollbar__wrap',
native ? '' : gutter ? '' : 'el-scrollbar__wrap--hidden-default',
native ? '' : 'el-scrollbar__wrap--hidden-default',
]"
:style="style"
@scroll="handleScroll"

View File

@@ -4,6 +4,7 @@
@include b(scrollbar) {
overflow: hidden;
position: relative;
height: 100%;
&:hover,
&:active,
@@ -21,8 +22,7 @@
@include m(hidden-default) {
scrollbar-width: none;
&::-webkit-scrollbar {
width: 0;
height: 0;
opacity: 0;
}
}
}