fix position of tooltip  on edge of screen

closes #8