Usign the center coordinates to get the input field instead of the left-top corner to avoid missing the input field because of rounding errors