Let height property to be defined as a function.

People like me might need to change the height of the calendar dynamically and for these situations the best thing is to define height as a function. This pull request just checks if the 'height' property is a function and call it if needed. Very simple and clean.