 <p>Sorry, I just disabled line wrapping on the tooltip by using the <code>white-space</code> in the css file and then checked if the tooltip isn't visible by the jQuery <code>$("#element").visible()</code> and changed positions with css from the JS file :)</p>