From 60598885569336033bef66c74973b107d5ad174e Mon Sep 17 00:00:00 2001 From: Jakob Heher Date: Tue, 9 Aug 2022 15:25:27 +0200 Subject: cleanup anchoring --- .../gui/composites/configuration/SimpleConfigurationComposite.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/configuration/SimpleConfigurationComposite.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/configuration/SimpleConfigurationComposite.java index 01a63fbf..4c636489 100644 --- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/configuration/SimpleConfigurationComposite.java +++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/configuration/SimpleConfigurationComposite.java @@ -561,9 +561,11 @@ public class SimpleConfigurationComposite extends ConfigurationCompositeBase { this.grpSignatureLang.setVisible(newProfile.hasText()); this.grpSignatureNote.setVisible(newProfile.hasText()); - this.sclLogoOnlyTargetSize.setVisible(newProfile.equals(Profile.BASE_LOGO)); + this.grpLogoOnlyTargetSize.setVisible(newProfile.equals(Profile.BASE_LOGO)); + SWTUtils.reanchor(grpPreview).top(newProfile.hasText() ? grpSignatureNote : grpLogoOnlyTargetSize, 5); this.grpPreview.setVisible(newProfile.isVisibleSignature()); + this.grpPreview.requestLayout(); signatureBlockPreviewChanged(); } -- cgit v1.2.3