Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarolyn MacLeod2012-04-30 16:53:42 +0000
committerCarolyn MacLeod2012-04-30 16:54:19 +0000
commit7e7c23207b059dd8f2f569032a4266c17d005c2c (patch)
treedd4482080ad6544805d8ef1c8ba7de5618f60413 /bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Table.java
parent1dbced596fa99e8438e287af8d6415e01019d350 (diff)
downloadeclipse.platform.swt-7e7c23207b059dd8f2f569032a4266c17d005c2c.tar.gz
eclipse.platform.swt-7e7c23207b059dd8f2f569032a4266c17d005c2c.tar.xz
eclipse.platform.swt-7e7c23207b059dd8f2f569032a4266c17d005c2c.zip
Bug 375723 - Handle MENU_KEYBOARD in more widgets
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Table.java')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Table.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Table.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Table.java
index 55795a857b..cea8c13837 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Table.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Table.java
@@ -5617,7 +5617,7 @@ void updateMenuLocation (Event event) {
TableItem focusItem = getItem (focusIndex);
Rectangle bounds = focusItem.getBounds (0);
if (focusItem.text != null && focusItem.text.length () != 0) {
- bounds = focusItem.getTextBounds (0);
+ bounds = focusItem.getBounds ();
}
x = Math.max (x, bounds.x + bounds.width / 2);
x = Math.min (x, clientArea.x + clientArea.width);

Back to the top