I've encountered an issue with my infinite horizontal scrollbar. When I drag elements to the dropzone, they appear below it instead of above.
Here's the HTML markup:
<div class="wrapper">
<div class="header">
Drop here
</div>
<div class="group-wrapper">
<div class="group-list">
<div class="group">Drag me</div>
<div class="group">Drag me</div>
<div class="group">Drag me</div>
<div class="group">Drag me</div>
<div class="group">Drag me</div>
<div class="group">Drag me</div>
<div class="group">Drag me</div>
</div>
</div>
</div>
The CSS is as follows:
.wrapper .header
{
overflow: hidden;
padding: 8px 4px 10px 8px;
position: relative;
width: 100%;
background-color: #ccc;
height: 100px;
text-align: center;
padding-top: 15px;
}
.wrapper .group-wrapper
{
width: 100%;
padding: 0px 5px 0px 8px;
top: 20px;
white-space: nowrap;
position: relative;
margin-left: 3px;
margin-right: 5px;
overflow-y: auto;
overflow-x: auto;
}
.wrapper .group-wrapper .group
{
width: 25%;
display: inline-block;
vertical-align: top;
margin: 0px 30px 0px 0px;
height: 100px;
border: 1px solid #ccc;
background-color: #000;
cursor: pointer;
color: #fff;
}
If I remove
overflow-y: auto; overflow-x: auto;
from the .group-wrapper
class, the dragging works correctly but the scrollbars disappear.