From ffe618dcd300dd3200c855e041c9b49f2bfa2cc3 Mon Sep 17 00:00:00 2001 From: Gareth J Barnard Date: Fri, 7 Nov 2014 15:15:49 +0000 Subject: [PATCH] MDL-36499 javascript: Expand height of the file element in embedded view. --- lib/javascript-static.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/javascript-static.js b/lib/javascript-static.js index 38a4dd82d2d..bfd294a8c2d 100644 --- a/lib/javascript-static.js +++ b/lib/javascript-static.js @@ -355,7 +355,7 @@ M.util.init_maximised_embed = function(Y, id) { var headerheight = get_htmlelement_size('page-header', 'height'); var footerheight = get_htmlelement_size('page-footer', 'height'); - var newheight = parseInt(Y.one('body').get('winHeight')) - footerheight - headerheight - 100; + var newheight = parseInt(Y.one('body').get('docHeight')) - footerheight - headerheight - 100; if (newheight < 400) { newheight = 400; }