¡@

Home 

2014/10/16 ¤W¤È 12:07:07

jquery Programming Glossary: resizecontainer

Resizing a JQuery Draggable element's containment parent while dragging

http://stackoverflow.com/questions/10456234/resizing-a-jquery-draggable-elements-containment-parent-while-dragging

so that JQuery will use the new container size '.slide' .draggable axis x containment 'parent' drag function e ui resizeContainer if outsideContainer Try to stop and restart dragging this .trigger 'mouseup' this .trigger 'mousedown' However.. this question @Fijjit if I understand correctly what you want is a custom containment function which implements your resizeContainer algorithm before applying bounds to the dragged element. In the code below the standard draggable containment option is.. before applying bounds to the dragged element. In the code below the standard draggable containment option is omitted resizeContainer is attached as the draggable drag event handler resizeContainer is dual purpose a it performs your resize algorithm and..