commit | 52aab4f3cd13aa9892cce4baea7e2ea88f56836b | [log] [tgz] |
---|---|---|
author | Steve Northover <steve> | Fri May 13 18:09:36 2005 +0000 |
committer | Steve Northover <steve> | Fri May 13 18:09:36 2005 +0000 |
tree | 170eafbfaba9415d54ee6e8fd81dde5b4e01e342 | |
parent | 3f7ecfe6e315a0b4f295c795b6e7685b24b44f23 [diff] |
width wrong in Menu.getBounds()
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/MenuItem.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/MenuItem.java index 883b4a5..455be8c 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/MenuItem.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/MenuItem.java
@@ -321,8 +321,8 @@ } int x = info2.left - info1.left; int y = info2.top - info1.top; - int width = info1.right - info1.left; - int height = info1.bottom - info1.top; + int width = info2.right - info2.left; + int height = info2.bottom - info2.top; return new Rectangle (x, y, width, height); } else { int hMenu = parent.handle;