PartSashContainer: Children [message #580710] |
Fri, 13 August 2010 03:19  |
Eclipse User |
|
|
|
Hello,
I'm currently trying to create an application using the e4 Application Model. The problem I have there is the following:
If I define a PartSashContainer and it's children, I cannot set their size. The available space is always distributed equally among the children.
E.g. If there are two children in a vertical PartSashContainer, they take both 50% of the available height. But I want the upper one to take a fixed size and the other one should fill the rest.
Is there any way to do that?
Many thanks in advance,
aRne
|
|
|
Re: PartSashContainer: Children [message #580724 is a reply to message #580710] |
Fri, 13 August 2010 04:06  |
Eclipse User |
|
|
|
Am 13.08.10 09:19, schrieb aRne:
> Hello,
>
> I'm currently trying to create an application using the e4 Application
> Model. The problem I have there is the following:
> If I define a PartSashContainer and it's children, I cannot set their
> size. The available space is always distributed equally among the children.
>
> E.g. If there are two children in a vertical PartSashContainer, they
> take both 50% of the available height. But I want the upper one to take
> a fixed size and the other one should fill the rest.
> Is there any way to do that?
The relative sizes are controlled by the containerData attribute of the
child (e.g. Part/PartStack). I don't think we yet have a story that
allows you to use absolute sizes so the only possibility is to write
your own SashContainerRenderer which uses a Composite as Container and a
GridLayout to replace it.
We are currently evaluating the possibility remove the use of SashForm
in 4.1 in [1] and I've added a comment so that we add fixed sizes as a
feature.
Tom
[1]https://bugs.eclipse.org/bugs/show_bug.cgi?id=317849
|
|
|
Powered by
FUDForum. Page generated in 0.03078 seconds