summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSilenio Quarti <silenio>2004-02-11 18:39:15 +0000
committerSilenio Quarti <silenio>2004-02-11 18:39:15 +0000
commit9713913f0656da0407cc766724f6685aca816380 (patch)
treeedaa0401b14dc4a82da73c0b7af99994dde65697
parent439b15f8a85a9ab4e8b77de55180416acc30dcb4 (diff)
downloadeclipse.platform.swt-9713913f0656da0407cc766724f6685aca816380.tar.gz
eclipse.platform.swt-9713913f0656da0407cc766724f6685aca816380.tar.xz
eclipse.platform.swt-9713913f0656da0407cc766724f6685aca816380.zip
*** empty log message ***
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/ToolItem.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/ToolItem.java b/bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/ToolItem.java
index 2273223140..bbb24f7466 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/ToolItem.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/ToolItem.java
@@ -611,6 +611,11 @@ int kEventMouseDown (int nextHandler, int theEvent, int userData) {
y -= rect.top;
int width = rect.right - rect.left;
if (width - x < 12) {
+ x = rect.left;
+ y = rect.bottom;
+ OS.GetControlBounds (parent.handle, rect);
+ x -= rect.left;
+ y -= rect.top;
Event event = new Event ();
event.detail = SWT.ARROW;
event.x = x;