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.

jsfiddle demo link

try this:

.dragclass {    display: inline-block;    float: left }  $(".dragclass")     .draggable({         stack: "div",                     cursor      : "move",         delay       : 100,         scroll      : false,         containment : "parent",         refreshpositions: true,         scroll: true     }) 

http://jsfiddle.net/e2yfc/18/


Comments

Popular posts from this blog

django - How can I change user group without delete record -

java - Need to add SOAP security token -

java - EclipseLink JPA Object is not a known entity type -