PDA

View Full Version : Problem with Ext.dd.DD



gultaj
9 Dec 2011, 3:37 AM
Hello!
I have a problem, i try to do example Drag&Drop from book, like this Drag and Drop (http://docs.sencha.com/ext-js/4-0/#!/guide/drag_and_drop)
But elements (objects) aren't moved free, only on right and bottom where they appear.
My example: http://jsfiddle.net/gultaj/RsBZ5/embedded/result,js,html,css/
What i do wrong? Or maybe i can't understand anything :)

tvanzoelen
9 Dec 2011, 9:05 AM
Maybe it has to do with the defaultPadding setting

defaultPadding : Object
Provides default constraint padding to "constrainTo" elements.
Defaults to: {left: 0, right: 0, top: 0, bottom: 0}

in http://docs.sencha.com/ext-js/4-0/#!/api/Ext.dd.DD

gultaj
10 Dec 2011, 3:24 PM
thanks, but it doesn't solve the problem..