From 34ac0c6b303f09771d3d2dbd5d44e3b8e932d17c Mon Sep 17 00:00:00 2001 From: Jakob Heher Date: Wed, 16 Nov 2022 15:35:38 +0100 Subject: re-clamp signature position after placeholder loads (width may have changed) --- .../src/main/java/at/asit/pdfover/gui/composites/SignaturePanel.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/SignaturePanel.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/SignaturePanel.java index 6f4064bc..250daf7d 100644 --- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/SignaturePanel.java +++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/SignaturePanel.java @@ -182,6 +182,8 @@ public class SignaturePanel extends JPanel { this.sigPageWidth = placeholder.getWidth(null) / 4; this.sigPageHeight = placeholder.getHeight(null) / 4; renderPageToImage(); + if (this.sigPagePos != null) + setSignaturePosition(this.sigPagePos.getX(), this.sigPagePos.getY()); repaint(); } -- cgit v1.2.3