aboutsummaryrefslogtreecommitdiffstats
path: root/demos/real-world/layout/demo.js
diff options
context:
space:
mode:
Diffstat (limited to 'demos/real-world/layout/demo.js')
-rw-r--r--demos/real-world/layout/demo.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/demos/real-world/layout/demo.js b/demos/real-world/layout/demo.js
index d93c76d4c..039f1463d 100644
--- a/demos/real-world/layout/demo.js
+++ b/demos/real-world/layout/demo.js
@@ -81,11 +81,15 @@
//placeholder: 'placeholder',
connectWith: els,
start: function(e,ui) {
- ui.helper.css("width", ui.item.width());
+ ui.helper.css("width", ui.item.parent().width());
},
change: sortableChange,
update: sortableUpdate
});
+ $('#components > dl').draggable({
+ connectToSortable: $els,
+ helper: 'clone'
+ })
});
$(window).bind('load',function(){