Authored by 陶雨

改善拖拽组件不好拖动的情况

@@ -26,6 +26,7 @@ var jQuery = require('jquery'); @@ -26,6 +26,7 @@ var jQuery = require('jquery');
26 26
27 var placeholder = $('<' + items[0].tagName + ' class="sortable-placeholder">'); 27 var placeholder = $('<' + items[0].tagName + ' class="sortable-placeholder">');
28 placeholder.css("border","2px dashed red"); 28 placeholder.css("border","2px dashed red");
  29 + placeholder.css("height",$(items[0]).height());
29 30
30 var handle = options.handle, isHandle; 31 var handle = options.handle, isHandle;
31 items.find(handle).mousedown(function() { 32 items.find(handle).mousedown(function() {