Jquery UI - Dynamically added resizable & draggable divs are going outside the containment -
pls go through demo link of fiddle. when user adds new text parentdiv, newly added layer going beyond size of parent layer.
try click button 3 or 4 times, , notice new text layer outside parent layer..
can confine newly added layers inside layer ? there logic present jqueryui controls ?
please help.
try this:
.dragclass { display: inline-block; float: left } $(".dragclass") .draggable({ stack: "div", cursor : "move", delay : 100, scroll : false, containment : "parent", refreshpositions: true, scroll: true })
Comments
Post a Comment