Skip to content

Commit

Permalink
Merge branch 'MDL-47792_27' of git://github.com/dmonllao/moodle into …
Browse files Browse the repository at this point in the history
…MOODLE_27_STABLE
  • Loading branch information
stronk7 committed Jan 20, 2015
2 parents 2997251 + 17c0747 commit 981464e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions report/completion/textrotate.js
Expand Up @@ -8,9 +8,9 @@ function textrotate_make_svg(el)
var abs=document.createElement('div');
abs.appendChild(document.createTextNode(string));
abs.style.position='absolute';
el.parentNode.insertBefore(abs,el);
var textWidth=abs.offsetWidth,textHeight=abs.offsetHeight;
el.parentNode.removeChild(abs);
document.body.appendChild(abs);
var textWidth=abs.offsetWidth * 1.2,textHeight=abs.offsetHeight;
document.body.removeChild(abs);

// Create SVG
var svg=document.createElementNS(SVGNS,'svg');
Expand Down
6 changes: 3 additions & 3 deletions report/progress/textrotate.js
Expand Up @@ -8,9 +8,9 @@ function textrotate_make_svg(el)
var abs=document.createElement('div');
abs.appendChild(document.createTextNode(string));
abs.style.position='absolute';
el.parentNode.insertBefore(abs,el);
var textWidth=abs.offsetWidth,textHeight=abs.offsetHeight;
el.parentNode.removeChild(abs);
document.body.appendChild(abs);
var textWidth=abs.offsetWidth * 1.2,textHeight=abs.offsetHeight;
document.body.removeChild(abs);

// Create SVG
var svg=document.createElementNS(SVGNS,'svg');
Expand Down

0 comments on commit 981464e

Please sign in to comment.