Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 364663

Summary: ToolItem with no text has initial size calculated incorrectly on Mac
Product: [Eclipse Project] Platform Reporter: Simon Pope <skjpope>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: eclipse.felipe, lshanmug
Version: 3.7.1   
Target Milestone: ---   
Hardware: Macintosh   
OS: Mac OS X   
Whiteboard:

Description Simon Pope CLA 2011-11-23 19:36:36 EST
Build Identifier: 20110916-0149

If you Create a vertical toolbar and populate it with simple tool items that have no text but have images, the first time you run it, the tool items will permanently 'jump' by a few pixels up the screen when the mouse moves over the toolbar.

Reproducible: Always

Steps to Reproduce:
1. Create a vertical Toolbar.
2. Create a ToolItem that has no text but does have a image.
3. Watch how when you run the program, that the ToolItem moves upwards slightly in the Toolbar, as though it's initial size or internal layout is incorrect.

No workaround seems to work. However, setting anything *other* than an empty string for the tool item text fixes the problem (but this is not a workaround that is useful).
Comment 1 Lakshmi P Shanmugam CLA 2012-07-18 06:44:22 EDT
Can you reproduce this with eclipse 3.8/4.2? I'm unable to reproduce the problem.
I tried it with snippet -->http://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet36.java with the ToolBar style changed to SWT.VERTICAL.
Comment 2 Lakshmi P Shanmugam CLA 2012-09-05 07:11:14 EDT
Closing as Works for me. If you are able to reproduce this with eclipse 3.8/4.2, please reopen and attach a snippet to reproduce the problem.