Skip to content

Commit

Permalink
Merge branch 'MDL-36609_m23' of git://github.com/markn86/moodle into …
Browse files Browse the repository at this point in the history
…MOODLE_23_STABLE
  • Loading branch information
Sam Hemelryk committed Nov 26, 2012
2 parents f9fa262 + 302808a commit 55f8a9c
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions lib/javascript-static.js
Expand Up @@ -333,11 +333,16 @@ M.util.init_maximised_embed = function(Y, id) {
if (Y.Lang.isString(el)) {
el = Y.one('#' + el);
}
var val = el.getStyle(prop);
if (val == 'auto') {
val = el.getComputedStyle(prop);
// Ensure element exists.
if (el) {
var val = el.getStyle(prop);
if (val == 'auto') {
val = el.getComputedStyle(prop);
}
return parseInt(val);
} else {
return 0;
}
return parseInt(val);
};

var resize_object = function() {
Expand Down

0 comments on commit 55f8a9c

Please sign in to comment.