jQuery UI draggable into sortable
When I'm dragging an element from a draggable into a sortable, how do I change the amount of space the sortable elements drop down to make room for the draggable element to be dropped there? Right now, it defaults to the size of my sortable handle (16px), but I'd like to ma开发者_Python百科ke it about 100px or so.
Thank you!
You can style the placeholder element by adding a custom CSS class to it:
.myPlaceHolderClass { height: 100px !important; }
$('#sortable').sortable('option', 'placeholder', 'myPlaceHolderClass');
精彩评论