Skip to content

Commit

Permalink
MDL-35355 use YUI3 in resource resizing code
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed Sep 15, 2012
1 parent c8ac480 commit e58a797
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/javascript-static.js
Expand Up @@ -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;
}
Expand Down

0 comments on commit e58a797

Please sign in to comment.