By the way this method is currently unused but it will almost certainly be needed to find out if there's enough space around the container to display the dropdown at top/bottom/left/right