summaryrefslogtreecommitdiff
path: root/pdf-over-gui
diff options
context:
space:
mode:
authorJakob Heher <jakob.heher@iaik.tugraz.at>2022-06-28 09:54:21 +0200
committerJakob Heher <jakob.heher@iaik.tugraz.at>2022-06-28 09:54:21 +0200
commit122b94f7d09e4d38f94a6f6ec9a629c43ac98421 (patch)
treedf725a6617a5fb21925ca0b4ac0c088d83fa705c /pdf-over-gui
parent85723fc25e4f624ba2787cd63f9a84a55248edc9 (diff)
downloadpdf-over-122b94f7d09e4d38f94a6f6ec9a629c43ac98421.tar.gz
pdf-over-122b94f7d09e4d38f94a6f6ec9a629c43ac98421.tar.bz2
pdf-over-122b94f7d09e4d38f94a6f6ec9a629c43ac98421.zip
get rid of unneeded scroll bar for real this time (cf. #98)
Diffstat (limited to 'pdf-over-gui')
-rw-r--r--pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/ConfigurationComposite.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/ConfigurationComposite.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/ConfigurationComposite.java
index fdc05e5e..f2e10726 100644
--- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/ConfigurationComposite.java
+++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/ConfigurationComposite.java
@@ -196,7 +196,11 @@ public class ConfigurationComposite extends StateComposite {
aboutCompositeScr.setContent(aboutConfigComposite);
aboutCompositeScr.setExpandHorizontal(true);
aboutCompositeScr.setExpandVertical(true);
- aboutCompositeScr.setMinSize(aboutConfigComposite.computeSize(300, SWT.DEFAULT));
+ aboutCompositeScr.addListener(SWT.Resize, (event) -> {
+ int widthHint = aboutCompositeScr.getClientArea().width - 50; /* offset for scroll bar */
+ aboutCompositeScr.setMinSize(null);
+ aboutCompositeScr.setMinSize(aboutCompositeScr.computeSize(widthHint, SWT.DEFAULT));
+ });
this.tabFolder.setSelection(this.simpleTabItem);