I am using jQuery UI Tooltip in a web app. By default the position of the tooltip is bottom-left of the 'tool-tipped element'. However, when the tooltip will not fit in the browser window, it switches to bottom right.
This behavior is great, however rather than determining whether to position the tooltip bottom right or bottom left based on the width of the browser window, I would like to determine this based on the width of a parent container, so that the tooltips do not display outside of an area that I determine.
Please note I am aware of how to control the position manually with the API, I am looking for away to control the logic of the positioning globally.
$(function() {
$( '#bodyInner' ).tooltip();
});
This is so far I have done.