right positioning update

adjusts tooltip when positioned near the right side of the window