AshesOfOwls / jquery.shapeshift

A dynamic grid system with drag and drop functionality.
http://ashesofowls.github.com/jquery.shapeshift/
MIT License
1.67k stars 311 forks source link

drag handle is not working with new element #110

Open crasyboy42 opened 9 years ago

crasyboy42 commented 9 years ago

I have this code for shapeshift:

container.shapeshift({
    align:"left",
    gutterX: 5,
    gutterY: 5,
    paddingX: 5,
    paddingY: 5,
    minColumns: 4,
    handle: ".handle"
});

But when I append a new html element with this code:

$("#addEmpty").on("click", function(e){
    builderContainer.append(emptyColumnTemplate);
    builderContainer.trigger("ss-rearrange");
});

It does not allow me to move the selected column with that handler. (html code for existing and new column is the same) It moves along when I place a already existing column in front of it.

Is there any other solution to fix this exept destroy shapeshift and create a new one? (I already tried removing the handler that also doesn't work)

Thanks in advance!

kirkov commented 9 years ago

Same issue for me.