diff options
Diffstat (limited to 'pdf-over-gui')
-rw-r--r-- | pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/ConfigurationComposite.java | 6 |
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); |