diff options
author | Niraj Modi | 2016-07-26 09:26:57 +0000 |
---|---|---|
committer | Niraj Modi | 2016-08-09 09:10:52 +0000 |
commit | 661b96029729f9c4c7ee101946ab76b5a4f45f34 (patch) | |
tree | 6fa655d91ffc13ee125a278a75d8806619bd333f /bundles/org.eclipse.swt/Eclipse SWT/win32/org | |
parent | bca376040a111f87c594cff99a26ae20613c23dd (diff) | |
download | eclipse.platform.swt-661b96029729f9c4c7ee101946ab76b5a4f45f34.tar.gz eclipse.platform.swt-661b96029729f9c4c7ee101946ab76b5a4f45f34.tar.xz eclipse.platform.swt-661b96029729f9c4c7ee101946ab76b5a4f45f34.zip |
Bug 498196 - [Win32][GTK] SWT Toolbar does not display custom widgets
properly
Change-Id: I4306cd1c200ac6aad8a91faeefe205cc01f72a46
Signed-off-by: Niraj Modi <niraj.modi@in.ibm.com>
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/win32/org')
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ToolItem.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ToolItem.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ToolItem.java index e1742c77c3..9d7a4d89d7 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ToolItem.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ToolItem.java @@ -518,12 +518,12 @@ void resizeControl () { * case can occur when the control is a * combo box. */ - Rectangle itemRect = getBoundsInPixels (); - control.setSizeInPixels (itemRect.width, itemRect.height); - Rectangle rect = control.getBoundsInPixels (); + Rectangle itemRect = getBounds (); + control.setSize (itemRect.width, itemRect.height); + Rectangle rect = control.getBounds (); rect.x = itemRect.x + (itemRect.width - rect.width) / 2; rect.y = itemRect.y + (itemRect.height - rect.height) / 2; - control.setLocationInPixels (rect.x, rect.y); + control.setLocation (rect.x, rect.y); } } |