From 5212e0f6740f481559e26e6f18e5a98787efab9c Mon Sep 17 00:00:00 2001 From: tkellner Date: Wed, 10 Apr 2013 19:22:21 +0000 Subject: Correctly center open button git-svn-id: https://joinup.ec.europa.eu/svn/pdf-over/trunk@285 174cde9d-5d70-4d2a-aa98-46368bc2aaf7 --- .../at/asit/pdfover/gui/composites/DataSourceSelectComposite.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'pdf-over-gui/src') 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); -- cgit v1.2.3