diff options
author | tkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7> | 2013-04-10 19:07:34 +0000 |
---|---|---|
committer | tkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7> | 2013-04-10 19:07:34 +0000 |
commit | 5e211eb43237a63beef15ab484321a9d37fbd7b1 (patch) | |
tree | b3c99ebc1beba27a60db2ed1ce6dd84087ba0d91 /pdf-over-gui/src/main/java | |
parent | c4c8c4ce5e2ac5a01cef25d2929d7ab882bd1499 (diff) | |
download | pdf-over-5e211eb43237a63beef15ab484321a9d37fbd7b1.tar.gz pdf-over-5e211eb43237a63beef15ab484321a9d37fbd7b1.tar.bz2 pdf-over-5e211eb43237a63beef15ab484321a9d37fbd7b1.zip |
Don't resize mainbar on start
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-over/trunk@145 174cde9d-5d70-4d2a-aa98-46368bc2aaf7
Diffstat (limited to 'pdf-over-gui/src/main/java')
-rw-r--r-- | pdf-over-gui/src/main/java/at/asit/pdfover/gui/MainWindow.java | 8 |
1 files changed, 6 insertions, 2 deletions
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); } |