@ -973,14 +973,18 @@ var TextLayerBuilder = function textLayerBuilder(textLayerDiv) {
@@ -973,14 +973,18 @@ var TextLayerBuilder = function textLayerBuilder(textLayerDiv) {
return;
}
vartextDiv=textDivs.shift();
if(textDiv.dataset.textLength>0){
textLayerDiv.appendChild(textDiv);
if(textDiv.dataset.textLength>1){// avoid div by zero
// Adjust div width (via letterSpacing) to match canvas text
// Due to the .offsetWidth calls, this is slow
// **This needs to come after appending to the DOM**