This commit is contained in:
parent
0bb518341d
commit
8a0db9de1c
@ -82,7 +82,6 @@
|
|||||||
|
|
||||||
characterCount = textElement.textContent.length - 1
|
characterCount = textElement.textContent.length - 1
|
||||||
spaceNeeded = containerWidth - textWidth
|
spaceNeeded = containerWidth - textWidth
|
||||||
console.log(containerWidth, textWidth, characterCount)
|
|
||||||
if (characterCount > 0 && spaceNeeded > 0) {
|
if (characterCount > 0 && spaceNeeded > 0) {
|
||||||
const additionalLetterSpacing = spaceNeeded / characterCount
|
const additionalLetterSpacing = spaceNeeded / characterCount
|
||||||
const newLetterSpacing = additionalLetterSpacing
|
const newLetterSpacing = additionalLetterSpacing
|
||||||
|
Loading…
Reference in New Issue
Block a user