Fix calculation when calendar outside viewport
Merge pull request #75 from owenmead/vanilla

Fix Issue #74