http://jqueryui.com/demos/position/
The jQuery UI Position utility detects when the element being positioned overflows the window and automatically places it inside the window using the ‘collision’ option.
Is it possible to do this when the element overflows a specific div instead of the entire window?
Thank you.
Yup, use the using property.