prevent out of position tooltip