jquery - Draggable and droppable position -


please on jsfiddle

the problem when drop element not position well. know problem because of left: 12px; in css cant figure out how solve.

$('.b').droppable({         drop:function(event, ui) {             ui.draggable.detach().appendto($(this));         } }); $('.b').selectable();  $('.c').draggable({     helper:"clone",     revert: 'invalid',     opacity: 0.5,     grid: [30,36], }); 

just use ui.draggable.detach().appendto($(this).prev()) instead

fiddle


Comments

Popular posts from this blog

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -

nvd3.js - angularjs-nvd3-directives setting color in legend as well as in chart elements -