mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-09 09:45:42 +02:00
Merge pull request #2326 from yurydelendik/issue-2296
Fixes Util is not defined in acroforms example when running in prod mode
This commit is contained in:
commit
5caef8612a
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ function setupForm(div, content, viewport) {
|
||||||
}
|
}
|
||||||
function createElementWithStyle(tagName, item) {
|
function createElementWithStyle(tagName, item) {
|
||||||
var element = document.createElement(tagName);
|
var element = document.createElement(tagName);
|
||||||
var rect = Util.normalizeRect(
|
var rect = PDFJS.Util.normalizeRect(
|
||||||
viewport.convertToViewportRectangle(item.rect));
|
viewport.convertToViewportRectangle(item.rect));
|
||||||
element.style.left = Math.floor(rect[0]) + 'px';
|
element.style.left = Math.floor(rect[0]) + 'px';
|
||||||
element.style.top = Math.floor(rect[1]) + 'px';
|
element.style.top = Math.floor(rect[1]) + 'px';
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue