Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVeronika Irvine2004-11-26 21:48:03 +0000
committerVeronika Irvine2004-11-26 21:48:03 +0000
commit26eb61842d9d925834714ece578ff430c540a082 (patch)
tree2a383678e22d16a0e62cc290357aa9e8d6901082 /examples
parent0a4829b1d062abcdb5a68381061e49eadbdfec74 (diff)
downloadeclipse.platform.swt-26eb61842d9d925834714ece578ff430c540a082.tar.gz
eclipse.platform.swt-26eb61842d9d925834714ece578ff430c540a082.tar.xz
eclipse.platform.swt-26eb61842d9d925834714ece578ff430c540a082.zip
*** empty log message ***
Diffstat (limited to 'examples')
-rw-r--r--examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/clipboard/ClipboardExample.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/clipboard/ClipboardExample.java b/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/clipboard/ClipboardExample.java
index 04b42c99a9..5b81d7821b 100644
--- a/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/clipboard/ClipboardExample.java
+++ b/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/clipboard/ClipboardExample.java
@@ -98,7 +98,7 @@ public void open(Display display) {
Point size = shell.computeSize(SWT.DEFAULT, SWT.DEFAULT);
Rectangle monitorArea = shell.getMonitor().getClientArea();
- shell.setSize(Math.min(size.x, monitorArea.width), Math.min(size.y, monitorArea.height));
+ shell.setSize(Math.min(size.x, monitorArea.width - 20), Math.min(size.y, monitorArea.height - 20));
shell.open();
while (!shell.isDisposed ()) {
if (!display.readAndDispatch ()) display.sleep ();

Back to the top