mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
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:
@@ -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"
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user