godswearhats / jquery-ui-rotatable

Adds a small handle to an HTML element to allow it to be rotated
MIT License
155 stars 103 forks source link

Restricting draggable position. #48

Closed HarshaVardhanPVK closed 8 years ago

HarshaVardhanPVK commented 8 years ago

I want to drag a div in another div. I mean it should be draggable in side that div only.

How can I achieve it?

Thanks in advance.

HarshaVardhanPVK commented 8 years ago

$('#draggable3').draggable({ containment: "parent" });

worked

godswearhats commented 8 years ago

That's a question for draggable, not rotatable.

On Jul 5, 2016, at 03:16, HarshaVardhanPVK notifications@github.com wrote:

I want to drag a div in another div. I mean it should be draggable in side that div only.

How can I achieve it?

Thanks in advance.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.