Does anyone know how to contain a window widget within a certain div/element tag?
Right now I have been trying to use $("#windowTest").draggable({ containment: $("#windowTest").parent() });, but I am having no luck with this. I would have to assume there is some way to contain a window, especially since it is built into jquery already and when you create a window it gives it a data-role of "draggable" (the correct jquery type).
I have not included any code since all I need to accomplish is keeping windowTest inside containmentDiv.
<div id="containmentDiv">
<div id="windowTest"></div>
</div>
Thanks for any help!
Right now I have been trying to use $("#windowTest").draggable({ containment: $("#windowTest").parent() });, but I am having no luck with this. I would have to assume there is some way to contain a window, especially since it is built into jquery already and when you create a window it gives it a data-role of "draggable" (the correct jquery type).
I have not included any code since all I need to accomplish is keeping windowTest inside containmentDiv.
<div id="containmentDiv">
<div id="windowTest"></div>
</div>
Thanks for any help!