Skip to content

Commit

Permalink
MDL-47792 javascript: Fix for cropped headers and horizontal align
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron Barnes authored and David Monllao committed Jan 20, 2015
1 parent da0ef2e commit 301bc0f
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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 301bc0f

Please sign in to comment.