mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 10:08:06 +02:00
Fixes Util is not defined in acroforms example when running in prod mode
This commit is contained in:
parent
3c5a9ba64b
commit
8c6847eb27
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ function setupForm(div, content, viewport) {
|
|||
}
|
||||
function createElementWithStyle(tagName, item) {
|
||||
var element = document.createElement(tagName);
|
||||
var rect = Util.normalizeRect(
|
||||
var rect = PDFJS.Util.normalizeRect(
|
||||
viewport.convertToViewportRectangle(item.rect));
|
||||
element.style.left = Math.floor(rect[0]) + 'px';
|
||||
element.style.top = Math.floor(rect[1]) + 'px';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue