mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 15:18:08 +02:00
linting
This commit is contained in:
parent
16bd59edf0
commit
6c7e7df6da
2 changed files with 7 additions and 6 deletions
|
@ -1044,9 +1044,9 @@ 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
|
||||
CustomStyle.setProp('transform' , textDiv, 'scale('
|
||||
+ textDiv.dataset.canvasWidth/textDiv.offsetWidth
|
||||
+ ',1)');
|
||||
var textScale = textDiv.dataset.canvasWidth / textDiv.offsetWidth;
|
||||
CustomStyle.setProp('transform' , textDiv,
|
||||
'scale(' + textScale + ', 1)');
|
||||
CustomStyle.setProp('transformOrigin' , textDiv, '0% 0%');
|
||||
}
|
||||
} // textLength > 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue