mirror of
https://github.com/moodle/moodle.git
synced 2025-03-18 22:50:19 +01:00
MDL-35355 use YUI3 in resource resizing code
This commit is contained in:
parent
c8ac480979
commit
e58a797ce0
@ -341,7 +341,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.YUI2.util.Dom.getViewportHeight()) - footerheight - headerheight - 100;
|
||||
var newheight = parseInt(Y.one('body').get('winHeight')) - footerheight - headerheight - 100;
|
||||
if (newheight < 400) {
|
||||
newheight = 400;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user