From 5e211eb43237a63beef15ab484321a9d37fbd7b1 Mon Sep 17 00:00:00 2001 From: tkellner Date: Wed, 10 Apr 2013 19:07:34 +0000 Subject: Don't resize mainbar on start git-svn-id: https://joinup.ec.europa.eu/svn/pdf-over/trunk@145 174cde9d-5d70-4d2a-aa98-46368bc2aaf7 --- pdf-over-gui/src/main/java/at/asit/pdfover/gui/MainWindow.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'pdf-over-gui/src/main') diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/MainWindow.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/MainWindow.java index d92b7d73..57fe4902 100644 --- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/MainWindow.java +++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/MainWindow.java @@ -58,6 +58,10 @@ public class MainWindow { **/ static final Logger log = LoggerFactory.getLogger(MainWindow.class); + /** Main bar height */ + private static final int MAINBAR_HEIGHT = 60; + + private Shell shell; private Composite container; private StackLayout stack; @@ -205,7 +209,7 @@ public class MainWindow { this.mainBarFormData.left = new FormAttachment(0, 10); this.mainBarFormData.right = new FormAttachment(100, -10); this.mainBarFormData.top = new FormAttachment(0, 10); - this.mainBarFormData.bottom = new FormAttachment(0, 67); + this.mainBarFormData.bottom = new FormAttachment(0, MAINBAR_HEIGHT); this.mainbar.setLayoutData(this.mainBarFormData); this.btn_config = new MainBarRectangleButton(this.mainbar, SWT.NONE); @@ -335,7 +339,7 @@ public class MainWindow { } if (behavior.getMainBarVisible()) { - this.mainBarFormData.bottom = new FormAttachment(0, 60); + this.mainBarFormData.bottom = new FormAttachment(0, MAINBAR_HEIGHT); } else { this.mainBarFormData.bottom = new FormAttachment(0, 0); } -- cgit v1.2.3