Fixed a bug with the datepicker's positioning

fixed a bug where sometimes the date picker was appearing too far to the
right relative to the icon; thanks to Mark;
Updated version number to 1.7.7