Some tweaks to positioning the edit element box.