summaryrefslogtreecommitdiff
path: root/trunk/pdf-over-gui/src/main
diff options
context:
space:
mode:
authortkellner <tkellner@3a0b52a2-8410-0410-bc02-ff6273a87459>2012-10-31 16:36:50 +0000
committertkellner <tkellner@3a0b52a2-8410-0410-bc02-ff6273a87459>2012-10-31 16:36:50 +0000
commit859c28a116497e189f2a636b348181137a9e3875 (patch)
tree93f0477ff67463b5a14469644164918a18de73ae /trunk/pdf-over-gui/src/main
parent29e8ec9d576dc1ef40542a6f2c1518c865d9792a (diff)
downloadpdf-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/pdf-over-gui/src/main')
-rw-r--r--trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/MainWindow.java8
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);
}