Browse Source

Fix for "Error parsing value of 'letter-spacing'"

Artur Adib 13 years ago
parent
commit
499a9b0146
  1. 2
      web/viewer.js

2
web/viewer.js

@ -973,7 +973,7 @@ var TextLayerBuilder = function textLayerBuilder(textLayerDiv) {
return; return;
} }
var textDiv = textDivs.shift(); var textDiv = textDivs.shift();
if (textDiv.dataset.textLength >= 1) { // avoid div by zero if (textDiv.dataset.textLength > 1) { // avoid div by zero
textLayerDiv.appendChild(textDiv); textLayerDiv.appendChild(textDiv);
// 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

Loading…
Cancel
Save