summaryrefslogtreecommitdiff
path: root/trunk/pdf-over-gui/src/main/java
diff options
context:
space:
mode:
authorTobias Kellner <tobias.kellner@iaik.tugraz.at>2012-11-08 21:30:29 +0100
committerTobias Kellner <tobias.kellner@iaik.tugraz.at>2012-11-08 21:30:29 +0100
commit71f4a43bc08a62dfc1cf10a15a6909a344af107c (patch)
tree078352a69376fda46bfd45dd577f138124d0053c /trunk/pdf-over-gui/src/main/java
parente325f36f8ba0547f1217eba409fdbbe3913275cd (diff)
downloadpdf-over-71f4a43bc08a62dfc1cf10a15a6909a344af107c.tar.gz
pdf-over-71f4a43bc08a62dfc1cf10a15a6909a344af107c.tar.bz2
pdf-over-71f4a43bc08a62dfc1cf10a15a6909a344af107c.zip
Correct conf dialog drop border
Diffstat (limited to 'trunk/pdf-over-gui/src/main/java')
-rw-r--r--trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/SimpleConfigurationComposite.java8
1 files changed, 3 insertions, 5 deletions
diff --git a/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/SimpleConfigurationComposite.java b/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/SimpleConfigurationComposite.java
index c1c6ce04..a2267a62 100644
--- a/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/SimpleConfigurationComposite.java
+++ b/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/SimpleConfigurationComposite.java
@@ -39,6 +39,7 @@ import org.eclipse.swt.graphics.FontData;
import org.eclipse.swt.graphics.Image;
import org.eclipse.swt.graphics.ImageData;
import org.eclipse.swt.graphics.Point;
+import org.eclipse.swt.graphics.Rectangle;
import org.eclipse.swt.layout.FormAttachment;
import org.eclipse.swt.layout.FormData;
import org.eclipse.swt.layout.FormLayout;
@@ -235,14 +236,11 @@ public class SimpleConfigurationComposite extends BaseConfigurationComposite {
@Override
public void paintControl(PaintEvent e) {
- //Workaround for paint event being called twice initially
- if (e.x > 0)
- return;
- // e.gc.setForeground();
e.gc.setForeground(Constants.DROP_BORDER_COLOR);
e.gc.setLineWidth(3);
e.gc.setLineStyle(SWT.LINE_DASH);
- e.gc.drawRoundRectangle(e.x, e.y, e.width - 2, e.height - 2,
+ Point size = controlComposite.getSize();
+ e.gc.drawRoundRectangle(0, 0, size.x - 2, size.y - 2,
10, 10);
}
});