From 8cd8df4b0214bee9ddc521c8a7145d9aa7bdcb5b Mon Sep 17 00:00:00 2001 From: Developer 02 Date: Tue, 17 Sep 2024 10:17:16 +0200 Subject: [PATCH] feat: Unterschriftsdatum unter das Unterschriftsfeld verschoben --- .../wwwroot/js/annotation.js | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/EnvelopeGenerator.Web/wwwroot/js/annotation.js b/EnvelopeGenerator.Web/wwwroot/js/annotation.js index 415277bb..b43df366 100644 --- a/EnvelopeGenerator.Web/wwwroot/js/annotation.js +++ b/EnvelopeGenerator.Web/wwwroot/js/annotation.js @@ -52,7 +52,7 @@ /** * Date, post code and place text form part */ - const date_place_top_shift = 16 + const date_place_top_shift = 14; //date const id_date = PSPDFKit.generateInstantId() const annotation_date = new PSPDFKit.Annotations.WidgetAnnotation({ @@ -64,8 +64,8 @@ boundingBox: new PSPDFKit.Geometry.Rect({ width: width * 1.55, height: height / 2, - top: top + height + 25 + date_place_top_shift, - left: left + width * 1.30, + top: top + height + 25 + date_place_top_shift + (height) + 4, + left: left }), fontSize: 8, backgroundColor: PSPDFKit.Color.TRANSPARENT, @@ -80,7 +80,7 @@ value: detailedCurrentDate(), readOnly: true }) - + //city var location = await getLocation(); const id_city = PSPDFKit.generateInstantId() @@ -93,12 +93,12 @@ boundingBox: new PSPDFKit.Geometry.Rect({ width: width * 1.2, height: height / 2, - top: top + height + 25 + date_place_top_shift, + top: top + height + 23 + date_place_top_shift, left: left, }), fontSize: 8 }) - + const formFieldCity = new PSPDFKit.FormFields.TextFormField({ name: id_city, annotationIds: PSPDFKit.Immutable.List([annotation_city.id]), @@ -125,8 +125,8 @@ boundingBox: new PSPDFKit.Geometry.Rect({ width: width * 0.75, height: height / 2, - top: top + height + 25 + label_top_shift + date_place_top_shift, - left: left + width * 1.30 + top: top + height + 23 + label_top_shift + date_place_top_shift + (height) + 4, + left: left }), fontSize: 8, backgroundColor: PSPDFKit.Color.TRANSPARENT, @@ -166,7 +166,7 @@ annotationIds: PSPDFKit.Immutable.List([annotation_city_label.id]), value: "Ort", readOnly: true - }) + }) return [annotation, formField, annotation_date, formFieldDate, annotation_city, formFieldCity, annotation_date_label, formFieldDateLabel, annotation_city_label, formFieldCityLabel] } @@ -311,7 +311,7 @@ //required static #requiredFieldNames = new Array() - + static markFieldAsRequired(formField) { this.#requiredFieldNames.push(formField.name) } @@ -327,7 +327,7 @@ this.#cityFieldNames.push(formField.name) } - static isCityField(formField){ + static isCityField(formField) { return this.#cityFieldNames.includes(formField.name) } } \ No newline at end of file