How to vertically center a CoolItem in a CoolBar? [message #451075] |
Tue, 22 February 2005 15:11  |
Eclipse User |
|
|
|
Hi,
I am referring to the CoolBar Eclipse is using. You got some ToolItems
that are defined
with DROP_DOWN style, which results in a bigger height of the ToolItem.
In the next
CoolItem, some ToolItems are placed with normal style (and normal
height). These are
somehow vertically centered. I checked them with Java Spider and they
dont seem to
have a Layout or LayoutData set.
So how is Eclipse doing it?
Thanks for helping,
Ben
|
|
|
Re: How to vertically center a CoolItem in a CoolBar? [message #451076 is a reply to message #451075] |
Tue, 22 February 2005 15:23  |
Eclipse User |
|
|
|
Benjamin Pasero wrote:
> Hi,
>
> I am referring to the CoolBar Eclipse is using. You got some ToolItems
> that are defined
> with DROP_DOWN style, which results in a bigger height of the
> ToolItem. In the next
> CoolItem, some ToolItems are placed with normal style (and normal
> height). These are
> somehow vertically centered. I checked them with Java Spider and they
> dont seem to
> have a Layout or LayoutData set.
>
> So how is Eclipse doing it?
>
> Thanks for helping,
> Ben
Oops, I forgot to call ToolBar#pack()
Ben
|
|
|
Powered by
FUDForum. Page generated in 0.06517 seconds