function makeResourceDrag(arrIndexID) {
$(\'#imgA\' + arrIndexID).resizable();
$(\'#imgA\' + arrIndexID).draggable({
start: function(event, ui) {
Looks like it's because you're doing it on an Try wrapping the Working example: http://jsfiddle.net/vrUgs/2/, which jqueryui wraps in a in a display:inline-block, will "hug" the size of the image in both x and y axes), make the will be as well), and make the resizable (and since the div hugs the image, it all sits nicely).