jQuery showing divs always inside viewport
<p>I am writing a jquery web-app that basically opens a div "window" based on where you click with the mouse. You can obviously imagine that if the mouse is too much on the right or bottom of the viewport, part of the opened DIV will not be vieweable.</p>

<p>Is there a way, maybe in jQuery UI to have the newly shown DIV be moved a bit in the right direction of part of it in un-vieweable ( possibly when using draggable() )? If not, I will have to write my own function.</p>

<p>Thanks in advance</p>
