Improved iOS position fix for dateinput

Improves the UA sniff to avoid causing problems in newer iOS versions. Adjusts the left position as well as top for better placement of calendar on the affected versions of mobile Safari. This is a fix for issue #962.