summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets
diff options
context:
space:
mode:
authorCarolyn MacLeod <Carolyn_MacLeod@ca.ibm.com>2012-04-16 12:45:30 -0400
committerCarolyn MacLeod <Carolyn_MacLeod@ca.ibm.com>2012-04-16 12:45:30 -0400
commitc544b70c0083cf5c094cf4fc8b7ba7f940bb71b0 (patch)
tree4f9aa037122e9e1cc7078aef2ba86cf7b97303d5 /bundles/org.eclipse.swt/Eclipse SWT Custom Widgets
parent67664007e67ab633eadf5408d9a04f1d0537ef65 (diff)
downloadeclipse.platform.swt-c544b70c0083cf5c094cf4fc8b7ba7f940bb71b0.tar.gz
eclipse.platform.swt-c544b70c0083cf5c094cf4fc8b7ba7f940bb71b0.tar.xz
eclipse.platform.swt-c544b70c0083cf5c094cf4fc8b7ba7f940bb71b0.zip
Bug 375721 - Context menu position in StyledText should be below caret
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT Custom Widgets')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledText.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledText.java b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledText.java
index 4cc4d4ba31..41a9db9c76 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledText.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledText.java
@@ -5971,7 +5971,7 @@ void handleMenuDetect(Event event) {
if (event.detail == SWT.MENU_KEYBOARD) {
Point point = getDisplay().map(this, null, getPointAtOffset(caretOffset));
event.x = point.x;
- event.y = point.y;
+ event.y = point.y + getLineHeight(caretOffset);
}
}
/**