http://stackoverflow.com/questions/
25095539/allow-scroll-but-hide-scrollbar
.@{prefixClass}-panel-select {
float: left;
- overflow-y:auto;
font-size: 12px;
border: 1px solid #e9e9e9;
border-width: 0 1px;
margin-left: -1px;
box-sizing: border-box;
width: 56px;
+ overflow: hidden;
&:first-child {
border-left: 0;
ul {
list-style: none;
- box-sizing: border-box;
+ box-sizing: content-box;
margin: 0;
padding: 0;
width: 100%;
max-height: 144px;
+ overflow: auto;
+ padding-right: 16px;
}
li {
list-style: none;
- box-sizing: border-box;
+ box-sizing: content-box;
margin: 0;
padding: 0 0 0 16px;
width: 100%;
}
const topOption = list.children[index];
const to = topOption.offsetTop - select.offsetTop;
- scrollTo(select, to, duration);
+ scrollTo(list, to, duration);
},
render() {