summaryrefslogtreecommitdiff
path: root/pdf-over-gui/src
diff options
context:
space:
mode:
authorJakob Heher <jakob.heher@iaik.tugraz.at>2022-11-16 15:35:38 +0100
committerJakob Heher <jakob.heher@iaik.tugraz.at>2022-11-16 15:35:38 +0100
commit34ac0c6b303f09771d3d2dbd5d44e3b8e932d17c (patch)
tree2e6fcd6d956e9b62279b32fa7a7ad186d1bd7bc1 /pdf-over-gui/src
parentdfcf58b7715f22a4e2db63d3bb118f40d6a9197b (diff)
downloadpdf-over-34ac0c6b303f09771d3d2dbd5d44e3b8e932d17c.tar.gz
pdf-over-34ac0c6b303f09771d3d2dbd5d44e3b8e932d17c.tar.bz2
pdf-over-34ac0c6b303f09771d3d2dbd5d44e3b8e932d17c.zip
re-clamp signature position after placeholder loads (width may have changed)
Diffstat (limited to 'pdf-over-gui/src')
-rw-r--r--pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/SignaturePanel.java2
1 files changed, 2 insertions, 0 deletions
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();
}