diff --git a/src/Calendar.js b/src/Calendar.js index f699c301f8..7097d89be2 100644 --- a/src/Calendar.js +++ b/src/Calendar.js @@ -667,6 +667,10 @@ function Calendar_constructor(element, overrides) { function _calcSize() { // assumes elementVisible + if (typeof options.getContainerHeight === 'function') { + suggestedViewHeight = options.getContainerHeight() - (headerElement ? headerElement.outerHeight(true) : 0); + return; + } if (typeof options.contentHeight === 'number') { // exists and not 'auto' suggestedViewHeight = options.contentHeight; }