Flipping tooltip anchor point when it extends past bounds

Thanks for the response, I am using HTMLInfo.show since I render html content in my tooltip. Are there examples of “making it smarter” that I can view to help me along?