The tooltip should try to stay inside the bounds of the monitor whenever possible. Take a look at [this](https://stackoverflow.com/a/41381685) answer.