[datepicker] Move calendar after input field

This should ensure the calendar appears at the correct location regardless
of surrounding markup.

#1627