diff options
author | tkellner <tkellner@3a0b52a2-8410-0410-bc02-ff6273a87459> | 2012-10-31 16:36:50 +0000 |
---|---|---|
committer | tkellner <tkellner@3a0b52a2-8410-0410-bc02-ff6273a87459> | 2012-10-31 16:36:50 +0000 |
commit | 859c28a116497e189f2a636b348181137a9e3875 (patch) | |
tree | 93f0477ff67463b5a14469644164918a18de73ae /trunk | |
parent | 29e8ec9d576dc1ef40542a6f2c1518c865d9792a (diff) | |
download | pdf-over-859c28a116497e189f2a636b348181137a9e3875.tar.gz pdf-over-859c28a116497e189f2a636b348181137a9e3875.tar.bz2 pdf-over-859c28a116497e189f2a636b348181137a9e3875.zip |
Don't resize mainbar on start
git-svn-id: https://svn.iaik.tugraz.at/svn/egiz/prj/current/12PDF-OVER-4.0@12731 3a0b52a2-8410-0410-bc02-ff6273a87459
Diffstat (limited to 'trunk')
-rw-r--r-- | trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/MainWindow.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/MainWindow.java b/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/MainWindow.java index d92b7d73..57fe4902 100644 --- a/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/MainWindow.java +++ b/trunk/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); } |