Merge branch 'MDL-47792_master' of git://github.com/dmonllao/moodle
This commit is contained in:
@@ -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');
|
||||
|
||||
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user