Tweaking of tooltip to prevent clipping offscreen (Closes #6)