fixed issue positioning the tip when the target element is disconnected from the document and therefore has no offset