Browse Source

Lint lint lint

Artur Adib 14 years ago
parent
commit
e2e2240a22
  1. 5
      src/canvas.js

5
src/canvas.js

@ -288,9 +288,8 @@ var CanvasGraphics = (function canvasGraphics() { @@ -288,9 +288,8 @@ var CanvasGraphics = (function canvasGraphics() {
// Adjust div width (via letterSpacing) to match canvas text
// Due to the .offsetWidth calls, this is slow
textDivs[i].style.letterSpacing =
((textDivs[i].dataset.canvasWidth
- textDivs[i].offsetWidth)/(textDivs[i].dataset.textLength-1))
+ 'px';
((textDivs[i].dataset.canvasWidth - textDivs[i].offsetWidth) /
(textDivs[i].dataset.textLength - 1)) + 'px';
}
}
}

Loading…
Cancel
Save