fix(ihm): calendar picker is closed on blur (refs #4885)

it is displayed on top of the input if no place in bottom and if free space in top of the input
Merge pull request #1230 from Eric-Brison/3.2-I4885

fix(ihm): calendar picker is closed on blur (closes #4885)