I tried using the solution posted here: http://stackoverflow.com/questions/811037/jquery-draggable-and-overflow-issue, but I can't seem to get it to work for myself. I have a container div (div#container) which wraps around all of my draggable divs. The div#container has its overflow set to auto. I've used the scroll option and set it to false, but it still scrolls. Any ideas?
My HTML:
<div id="container">
<div class="draggable"> Drag Me </div>
<div class="draggable"> Drag Me </div>
<div class="draggable"> Drag Me </div>
<div class="draggable"> Drag Me </div>
<div class="draggable"> Drag Me </div>
<div class="draggable"> Drag Me </div>
<div class="draggable"> Drag Me </div>
<div class="draggable"> Drag Me </div>
</div>
My CSS:
div#container {
width: 300px;
height: 300px;
overflow: auto;
}
div.draggable {
padding: 3px;
font-size: 1.4em;
}
My Javascript:
$(function(){
$(".draggable").draggable({
scroll: false
});
});