eternicode/bootstrap-datepicker — pull request #572 by neemzy (2013-07-31 14:54:32+00:00)
Title: Corrected position bug

I was using this with a Bootstrap theme (http://bootswatch.com/flatly/) and realized that in the modified snippet, this.picker.css('padding') ended up being NaN, hence messing the picker's position up.

I simply added a quick check to avoid this and use 0 as a default value if no integer can be parsed out of the picker's padding.