jquery draggable hide object而不是cloaning

时间:2015-04-29 17:06:29

标签: javascript jquery html css jquery-ui

我的问题是我有一组可拖动的物体, 当一个物体被拖动时,休息对象自动适合框占据整个区域而不是我想要

任一 1:物体移动时不自动调节 要么 2:只需设置css hidden即可解决问题

见下面的网址

http://dev-shree.com/market/

点击“糖果”

现在将elephat上的极右图标拖到传真上你会看到整个硬币调整大小来修复那个方块,我怎么能停止这个

$("#draggable1,#draggable2,#draggable3,#draggable4,#draggable5,#draggable6,#draggable7,#draggable8,#draggable9,#draggable10,#draggable11,#draggable12,#draggable13,#draggable14,#draggable15,#draggable16,#draggable17,#draggable18,#draggable19,#draggable20,#draggable21,#draggable22,#draggable23,#draggable24,#draggable25,#draggable26,#draggable27,#draggable28,#draggable29,#draggable30,#draggable31,#draggable32,#draggable33,#draggable34,#draggable35,#draggable36,#draggable37,#draggable38,#draggable39,#draggable40,#draggable41,#draggable42,#draggable43").draggable({ 
        revert:  function(dropped) {
           var dropped = dropped && dropped[0].id == "feed_me";
           if(!dropped);
           return !dropped;

        } 
    }).each(function() {
        var top = $(this).position().top;
        var left = $(this).position().left;
        $(this).data('orgTop', top);
        $(this).data('orgLeft', left);
    });

0 个答案:

没有答案