recursively search children to find a valid element that we can based the overlay size on. Sovles case of having a as a direct child of a
Closes #3536328