From 223b3c371080d602ff02bf8b4fdddb61ea71fbd5 Mon Sep 17 00:00:00 2001 From: jlukic Date: Fri, 14 Feb 2014 16:09:58 -0500 Subject: [PATCH] Fixes #622, added as a separate commit to avoid addition committed files. Thanks GianlucaGuarini --- src/modules/modal.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/modal.js b/src/modules/modal.js index db1287fd6..1b4ff999a 100755 --- a/src/modules/modal.js +++ b/src/modules/modal.js @@ -416,7 +416,7 @@ $.fn.modal = function(parameters) { cacheSizes: function() { module.cache = { - height : $module.outerHeight() + settings.offset, + height : $module.outerHeight() + settings.offset + parseInt($module.css('marginTop'), 10), contextHeight : (settings.context == 'body') ? $(window).height() : $dimmable.height()