diff options
author | Carolyn MacLeod <Carolyn_MacLeod@ca.ibm.com> | 2012-04-16 12:45:30 -0400 |
---|---|---|
committer | Carolyn MacLeod <Carolyn_MacLeod@ca.ibm.com> | 2012-04-16 12:45:30 -0400 |
commit | c544b70c0083cf5c094cf4fc8b7ba7f940bb71b0 (patch) | |
tree | 4f9aa037122e9e1cc7078aef2ba86cf7b97303d5 | |
parent | 67664007e67ab633eadf5408d9a04f1d0537ef65 (diff) | |
download | eclipse.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
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledText.java | 2 |
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); } } /** |