I'm having a weird behaviour while trying to dragg a rotatable div in my Project. I'm not sure if this problem is related with Jquery UI or something else.
Go to my project, click the black square(in left toolbar), then click the simple edge arrow button on the left tool bar. then try rotating It and after try to drag It (It jumps).
The action exectuted when the "add simple arrow" button is pressed is this:
var $myArrow = $('<div class="ui-widget-content sArrow" style="display:inline-block"><img id="bli" width="150px;" heigth="150px;" src="images/1.png"/></div>');
$myArrow.css("position","absolute");
$($myArrow).rotatable(params);
$myArrow.draggable();
$('#canvas').append(myArrow);
And It's CSS:
.sArrow
{
border-radius: 5px;
border: 5px solid;
border-color: #FFFFFF;
position:absolute;
display:inline-block;
}
I've been struggling with this problem for 2 days and I still don't know how to solve It. The Jquery UI rotatable specification, say that you create a div inside a div, the inner div you make rotatable and the outer you make draggable, I tryied making this but this weird jump still happens (I don't know if I'm doing It wrong, or It is not a Jquery UI problem).