Lint lint lint
This commit is contained in:
parent
6a747c4353
commit
e2e2240a22
@ -288,9 +288,8 @@ var CanvasGraphics = (function canvasGraphics() {
|
|||||||
// Adjust div width (via letterSpacing) to match canvas text
|
// Adjust div width (via letterSpacing) to match canvas text
|
||||||
// Due to the .offsetWidth calls, this is slow
|
// Due to the .offsetWidth calls, this is slow
|
||||||
textDivs[i].style.letterSpacing =
|
textDivs[i].style.letterSpacing =
|
||||||
((textDivs[i].dataset.canvasWidth
|
((textDivs[i].dataset.canvasWidth - textDivs[i].offsetWidth) /
|
||||||
- textDivs[i].offsetWidth)/(textDivs[i].dataset.textLength-1))
|
(textDivs[i].dataset.textLength - 1)) + 'px';
|
||||||
+ 'px';
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user