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

Bug 349449

Summary: Icon alignment with text in the navigator
Product: [ECD] Orion Reporter: Simon Kaegi <simon_kaegi>
Component: ClientAssignee: Susan McCourt <susan>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: mamacdon
Version: 0.2Flags: susan: review? (mamacdon)
Target Milestone: 0.2   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Simon Kaegi CLA 2011-06-15 10:25:16 EDT
We were looking at the new icons today (generally great) and McQ pointed out an alignment issue with text at least in the navigator view and likely others. We saw this in Safari and Chrome.
Comment 1 John Arthorne CLA 2011-06-15 10:28:59 EDT
Also in the Repositories view it is particularly bad. The text almost touches the icon in this view.
Comment 2 Susan McCourt CLA 2011-06-15 11:14:47 EDT
I'll take a look.  Turns out this has always been true but position of the icons within the 16x16 box seems to make it more noticeable/worse.

The trick is to find the magic CSS that works well in all browsers, they tend to behave differently with table stuff.
Comment 3 Susan McCourt CLA 2011-06-15 15:28:05 EDT
the fix is to vertically align all images in the first column.
This is done inline when generating them.
Also added some margin to the right of the model icons, but this only fixes nav, not git clone.

See branch remotes/origin/bug349449
Comment 4 Mark Macdonald CLA 2011-06-15 15:40:22 EDT
I reviewed the patch and it looks good, +1
Comment 5 Susan McCourt CLA 2011-06-15 15:50:13 EDT
pushed.(In reply to comment #1)

> Also in the Repositories view it is particularly bad. The text almost touches
> the icon in this view.

My fix handles expandable nodes but not leaf nodes.  Opened bug 349498 for looking at the rest of the git renderers.