summaryrefslogtreecommitdiff
path: root/pdf-over-gui/src
diff options
context:
space:
mode:
authortkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7>2013-04-10 19:24:36 +0000
committertkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7>2013-04-10 19:24:36 +0000
commita387fd9a39d3556b5e49e407ea5dd48ea9b33ef7 (patch)
treecdc4cf5d921b20f92be3438af34258a9270fbf61 /pdf-over-gui/src
parentf6ebbe07cd9ddd9f379b9ebc173e82ed2b755cb0 (diff)
downloadpdf-over-a387fd9a39d3556b5e49e407ea5dd48ea9b33ef7.tar.gz
pdf-over-a387fd9a39d3556b5e49e407ea5dd48ea9b33ef7.tar.bz2
pdf-over-a387fd9a39d3556b5e49e407ea5dd48ea9b33ef7.zip
+ fixed BKU Selection buttons
+ fixed pdf-as placeholder git-svn-id: https://joinup.ec.europa.eu/svn/pdf-over/trunk@305 174cde9d-5d70-4d2a-aa98-46368bc2aaf7
Diffstat (limited to 'pdf-over-gui/src')
-rw-r--r--pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/BKUSelectionComposite.java15
1 files changed, 13 insertions, 2 deletions
diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/BKUSelectionComposite.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/BKUSelectionComposite.java
index 1560ff61..c176dd54 100644
--- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/BKUSelectionComposite.java
+++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/BKUSelectionComposite.java
@@ -182,25 +182,36 @@ public class BKUSelectionComposite extends StateComposite {
fD_cc_karte[0].setHeight(Constants.TEXT_SIZE_BUTTON);
cc_mobile.setFont(new Font(Display.getCurrent(), fD_cc_karte[0]));
+ int mobilesize = cc_mobile.computeSize(SWT.DEFAULT, SWT.DEFAULT).x;
+
this.btnMobile = new Button(this, SWT.NONE);
FormData fd_btnMobile = new FormData();
fd_btnMobile.top = new FormAttachment(cc_mobile, 10);
//fd_btnMobile.left = new FormAttachment(btn_mobile, 0);
fd_btnMobile.right = new FormAttachment(50, -5);
- fd_btnMobile.width = cc_mobile.computeSize(SWT.DEFAULT, SWT.DEFAULT).x;
+ //fd_btnMobile.width = cc_mobile.computeSize(SWT.DEFAULT, SWT.DEFAULT).x;
this.btnMobile.setLayoutData(fd_btnMobile);
this.btnMobile.setText(Messages.getString("bku_selection.mobile")); //$NON-NLS-1$
this.btnMobile.addSelectionListener(new MobileSelectionListener());
+ int btnmsize = this.btnMobile.computeSize(SWT.DEFAULT, SWT.DEFAULT).x;
+
+ fd_btnMobile.width = (btnmsize > mobilesize) ? btnmsize : mobilesize;
+
this.btnCard = new Button(this, SWT.NONE);
FormData fd_btnCard = new FormData();
fd_btnCard.top = new FormAttachment(cc_karte, 10);
//fd_btnMobile.left = new FormAttachment(btn_mobile, 0);
fd_btnCard.left = new FormAttachment(50, 5);
- fd_btnCard.width = cc_karte.computeSize(SWT.DEFAULT, SWT.DEFAULT).x;
+ int cardsize = cc_karte.computeSize(SWT.DEFAULT, SWT.DEFAULT).x;
+
this.btnCard.setLayoutData(fd_btnCard);
this.btnCard.setText(Messages.getString("bku_selection.card")); //$NON-NLS-1$
this.btnCard.addSelectionListener(new LocalSelectionListener());
+
+ int btncsize = this.btnCard.computeSize(SWT.DEFAULT, SWT.DEFAULT).x;
+
+ fd_btnCard.width = (btncsize > cardsize) ? btncsize : cardsize;
//this.pack();
}