summaryrefslogtreecommitdiff
path: root/pdf-over-gui/src/main/java/at/asit/pdfover
diff options
context:
space:
mode:
authortkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7>2013-04-10 19:22:21 +0000
committertkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7>2013-04-10 19:22:21 +0000
commit5212e0f6740f481559e26e6f18e5a98787efab9c (patch)
tree7276080c71a9ef44670a6fecf79b043d9780ccb0 /pdf-over-gui/src/main/java/at/asit/pdfover
parent3a22e0c305a100d877e3d826daee69f4e6eae943 (diff)
downloadpdf-over-5212e0f6740f481559e26e6f18e5a98787efab9c.tar.gz
pdf-over-5212e0f6740f481559e26e6f18e5a98787efab9c.tar.bz2
pdf-over-5212e0f6740f481559e26e6f18e5a98787efab9c.zip
Correctly center open button
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-over/trunk@285 174cde9d-5d70-4d2a-aa98-46368bc2aaf7
Diffstat (limited to 'pdf-over-gui/src/main/java/at/asit/pdfover')
-rw-r--r--pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/DataSourceSelectComposite.java7
1 files changed, 1 insertions, 6 deletions
diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/DataSourceSelectComposite.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/DataSourceSelectComposite.java
index b0cc905b..a4835460 100644
--- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/DataSourceSelectComposite.java
+++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/DataSourceSelectComposite.java
@@ -32,7 +32,6 @@ import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.graphics.Color;
import org.eclipse.swt.graphics.Font;
import org.eclipse.swt.graphics.FontData;
-import org.eclipse.swt.graphics.Point;
import org.eclipse.swt.graphics.Rectangle;
import org.eclipse.swt.layout.FormAttachment;
import org.eclipse.swt.layout.FormData;
@@ -326,13 +325,9 @@ public class DataSourceSelectComposite extends StateComposite {
*/
// lbl_drag.setBackground(back);
- Point size = this.btn_open.computeSize(SWT.DEFAULT, SWT.DEFAULT);
this.fd_btn_open = new FormData();
- this.fd_btn_open.left = new FormAttachment(50, (size.x / 2 ) * -1);
- //this.fd_btn_open.right = new FormAttachment(100, -5);
- //this.fd_btn_open.top = new FormAttachment(100, size.y * -1 - 10);
+ this.fd_btn_open.left = new FormAttachment(this.lbl_drag2, 0, SWT.CENTER);
this.fd_btn_open.top = new FormAttachment(this.lbl_drag2, 10);
- //this.fd_btn_open.bottom = new FormAttachment(100, -5);
this.btn_open.setLayoutData(this.fd_btn_open);
// btn_open.setBackground(back);