amsul/pickadate.js — pull request #405 by startswithaj (2014-04-20 11:11:53+00:00)
Title: getScrollbarWidth check scrollbar is visible first

The padding adjustment is applied regardless of whether the scrollbars are visible or not.
Check if document height is less than or equal to window height meaning scrollbars are hidden.
I think there is probably a better fix than having to compensate for the scrollbars at all.
Tested in chrome and safari. Not tested in IE.
Resolves #404.