Make bounding box more reliable by requiring the parent element to have a position