santa
santa

Reputation: 12512

How to get rid of the horizontal scroll in jQuery UI

I needed to add a overflow-y to accommodate draggable elements. But now when I drag items the area where they reside is adding having a horizontal scroll.

Demo with scroll. Demo that works properly.

Drag item from the left column to the right field.

Upvotes: 0

Views: 163

Answers (1)

Bojin Li
Bojin Li

Reputation: 5799

Set the scroll option to false on your draggables when you create them. That should prevent them from auto scrolling the container

    $("#myDraggable").draggable({
        scroll : false,
        }
    });

Upvotes: 1

Related Questions