Zoom combo on toolbar has unwanted separator under it on left edge! [message #246909] |
Tue, 20 January 2009 03:03  |
Eclipse User |
|
|
|
Hi,
When I add a ZoomComboContributionItem in the editor
ActionBarContributor I get a separator visible underneath the combo box,
just in from the left edge...
Seems to me this is due to the fill method:-
public void fill(ToolBar parent, int index) {
toolitem = new ToolItem(parent, SWT.SEPARATOR, index);
Control control = createControl(parent);
toolitem.setControl(control);
}
Curiously this separator is visible on Windows but not on Mac OS X.
How do I get rid of it?! Is it a bug maybe? I'm using ganymede 3.4 SR1
and GEF 3.4.1.
Thanks,
Justin
|
|
|
Re: Zoom combo on toolbar has unwanted separator under it on left edge! [message #247030 is a reply to message #246909] |
Mon, 26 January 2009 11:17  |
Eclipse User |
|
|
|
Justin Dolezy wrote:
> Hi,
> When I add a ZoomComboContributionItem in the editor
> ActionBarContributor I get a separator visible underneath the combo box,
> just in from the left edge...
> Curiously this separator is visible on Windows but not on Mac OS X.
> How do I get rid of it?! Is it a bug maybe? I'm using ganymede 3.4 SR1
> and GEF 3.4.1.
> Thanks,
> Justin
Well I've found the cause of the problem.. my toolbar has nice chunky
32x32 icons instead of the standard 16x16 ones.
So the separator that is created (via the fill() ToolItem) is indeed under
the combo however it isn't visible with 16x16 icons as the combo and
separator are the same height. With my 32x32 ones the combo height is
unchanged but the separator is now 32ish pixels tall causing it to poke
out above and below.
Once I've access to Thunderbird I can post a pic.
No ideas anyone? Can the SWT.SEPARATOR style be replaced with something
else??
Cheers,
Justin
|
|
|
Powered by
FUDForum. Page generated in 0.04298 seconds