Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 364663 - ToolItem with no text has initial size calculated incorrectly on Mac
Summary: ToolItem with no text has initial size calculated incorrectly on Mac
Status: RESOLVED WORKSFORME
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.7.1   Edit
Hardware: Macintosh Mac OS X
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-23 19:36 EST by Simon Pope CLA
Modified: 2012-09-05 07:11 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.