Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » PartSashContainer: Children
PartSashContainer: Children [message #580710] Fri, 13 August 2010 03:19 Go to next message
aRne  is currently offline aRne
Messages: 5
Registered: August 2010
Junior Member
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 Go to previous message
Thomas Schindl is currently offline Thomas Schindl
Messages: 5257
Registered: July 2009
Senior Member
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
Previous Topic:Databinding: tableviewer does not refresh automatically
Next Topic:Where's the best place to start with e4?
Goto Forum:
  


Current Time: Wed Jul 30 23:24:03 EDT 2014

Powered by FUDForum. Page generated in 0.04770 seconds