Is there a way to adjust the size of a dragged element to match its parent's dimensions after successfully dragging it (ensuring that both elements have the same width and height)?
Does anyone know how to accomplish this alignment between the two elements?
This is how my code for the droppable feature looks:
$(function() {
$( ".cells" ).droppable({
accept: "#image",
activeClass: "hovered",
hoverClass: "active",
drop: function( event, ui ) {
}
});
});