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:
parent
2bc708305d
commit
6902ba51fa
3 changed files with 56 additions and 3 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue