1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-20 15:18:08 +02:00

Properly support custom CSS properties

Fix comment in bidi
This commit is contained in:
Adil Allawi 2012-02-13 14:27:59 +00:00
parent 2bc708305d
commit 6902ba51fa
3 changed files with 56 additions and 3 deletions

View file

@ -1044,8 +1044,10 @@ var TextLayerBuilder = function textLayerBuilder(textLayerDiv) {
// Adjust div width to match canvas text
// Due to the .offsetWidth calls, this is slow
// This needs to come after appending to the DOM
textDiv.style.MozTransform = 'scale(' + textDiv.dataset.canvasWidth/textDiv.offsetWidth + ',1)';
textDiv.style.MozTransformOrigin = '0% 0%';
CustomStyle.setProp('transform' , textDiv, 'scale('
+ textDiv.dataset.canvasWidth/textDiv.offsetWidth
+ ',1)');
CustomStyle.setProp('transformOrigin' , textDiv, '0% 0%');
}
} // textLength > 0
}