Added additional option to disable or enable offscreen repositioning
of the tooltip