Stuff
public java v1 · immutable locate: function(evt){ var doc = document.body; var toleranceX = ( (this.toolTip.offsetWidth+evt.clientX) > (doc.clientWidth) ? this.toolTip.offsetWidth : 10 ); var toleranceY = ( (this.toolTip.offsetHeight+evt.clientY+30) > (doc.clientHeight) ? (-1)*(this.toolTip.offsetHeight+20) : 25 ); this.toolTip.setStyles({'top': evt.clientY + doc.scrollTop + toleranceY + 'px', 'left': evt.clientX + doc.scrollLeft - toleranceX + 'px'}); },