In some extreme cases the tooltips can grow outside the bounds of the screen when max UI scale is set. To fix this it now is moved slightly upwards based on the number of line of texts it has if it is in the lower part of the screen.