diff options
author | Tobias Kellner <tobias.kellner@iaik.tugraz.at> | 2012-11-12 22:18:53 +0100 |
---|---|---|
committer | Tobias Kellner <tobias.kellner@iaik.tugraz.at> | 2012-11-12 22:18:53 +0100 |
commit | a83935cdf7f21a1daf0a99faf04f1c2f81c1b5a0 (patch) | |
tree | ebe3c7b7475a8d255a3254457525662d18223f14 /trunk/pdf-over-gui | |
parent | a8123d27e58e1b44b62409736bd9461212ecdb34 (diff) | |
download | pdf-over-a83935cdf7f21a1daf0a99faf04f1c2f81c1b5a0.tar.gz pdf-over-a83935cdf7f21a1daf0a99faf04f1c2f81c1b5a0.tar.bz2 pdf-over-a83935cdf7f21a1daf0a99faf04f1c2f81c1b5a0.zip |
Correctly center open button
Diffstat (limited to 'trunk/pdf-over-gui')
-rw-r--r-- | trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/DataSourceSelectComposite.java | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/DataSourceSelectComposite.java b/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/DataSourceSelectComposite.java index b0cc905b..a4835460 100644 --- a/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/DataSourceSelectComposite.java +++ b/trunk/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); |