fix position of tooltip  on edge of screen