Move the tooltip back inside the window if it goes outside