summaryrefslogtreecommitdiff
path: root/lib/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'lib/scripts')
-rw-r--r--lib/scripts/media.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/scripts/media.js b/lib/scripts/media.js
index f76fd4065..23a1fe5d8 100644
--- a/lib/scripts/media.js
+++ b/lib/scripts/media.js
@@ -549,7 +549,7 @@ var dw_mediamanager = {
resize: function () {
var $contents = jQuery('#mediamanager__page div.panelContent'),
- height = jQuery(window).height() - jQuery(document).height() +
+ height = jQuery(window).height() - jQuery(document.body).height() +
Math.max.apply(null, jQuery.map($contents, function (v) {
return jQuery(v).height();
}));