I'm using the plugin iscroll just in my data-role="content"
but there's a huge scrollbar appearing in my full page:
scrollbar
I already tried some solutions found here in SO like:
but none work.
I check this website too, but no luck either.
Can you help me?
My HTML:
<div data-role="content" data-theme="c">
<div id="Container"></div>
<div id="Treelist">
<div id="scroller">
<ul id="Listview" ></ul>
</div>
</div>
</div>
My CSS
html, body {
height: 100%;
width: 100%;
margin: 0;
overflow: hidden;
}
#Treelist {
position:relative;
z-index:1;
top:0;
bottom:0;
left:0;
width:100%;
overflow: hidden;
/* Prevent native touch events on Windows */
-ms-touch-action: none;
/* Prevent the callout on tap-hold and text selection */
-webkit-touch-callout: none;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
/* Prevent text resize on orientation change, useful for web-apps */
-webkit-text-size-adjust: none;
-moz-text-size-adjust: none;
-ms-text-size-adjust: none;
-o-text-size-adjust: none;
text-size-adjust: none;
}
#scroller {
position:relative; z-index:1;
/* Prevent elements to be highlighted on tap */
-webkit-tap-highlight-color: rgba(0,0,0,0);
/* Put the scroller into the HW Compositing layer right from the start */
-webkit-transform: translateZ(0);
-moz-transform: translateZ(0);
-ms-transform: translateZ(0);
-o-transform: translateZ(0);
transform: translateZ(0);
}
#Treelist ul {
position:relative;
list-style:none;
padding:0;
margin:0;
width:100%;
text-align:left;
}
#Treelist li {
padding:0 10px;
height:150px;
/* line-height:40px; */
border-bottom:1px solid #ccc;
border-top:1px solid #fff;
background-color:#fafafa;
font-size:14px;
}