fix(annotation): invoke sigature background creation to fix z-index problem
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
async function createAnnotations(document) {
|
||||
const signatures = [];
|
||||
|
||||
for(var element of document.elements) {
|
||||
for (let element of document.elements) {
|
||||
const annotParams = await getAnnotationParams(element.left, element.top);
|
||||
const page = element.page - 1
|
||||
|
||||
@@ -27,13 +27,18 @@ async function createAnnotations(document) {
|
||||
name: id_background,
|
||||
annotationIds: PSPDFKit.Immutable.List([annotation_background.id]),
|
||||
value: "",
|
||||
readOnly: false
|
||||
readOnly: true
|
||||
});
|
||||
|
||||
signatures.push(annotation_background)
|
||||
signatures.push(formFieldBackground)
|
||||
}
|
||||
//#endregion
|
||||
}
|
||||
|
||||
for (let element of document.elements) {
|
||||
const annotParams = await getAnnotationParams(element.left, element.top);
|
||||
const page = element.page - 1
|
||||
|
||||
//#region signatures
|
||||
const id = PSPDFKit.generateInstantId()
|
||||
|
||||
Reference in New Issue
Block a user