A node takes the width of its container [message #176568] |
Mon, 10 March 2008 15:05  |
Eclipse User |
|
|
|
Hello again,
I would like to put one Node in a container.
I wish to know if it's possible to have this node fitting perfectly the
width of its container.
I'm facing 2 problems.
- The first one is to have the width changing when the father's one
changing.
- The second one is that when the node width is near from its container,
the XXXContainmentEditPart is creating some space on the borders and adds
a scrollbar.
How is it possible to disable this feature?
Thank you for any help.
Ivan
|
|
|
|
|
|
Re: A node takes the width of its container [message #177814 is a reply to message #177745] |
Tue, 18 March 2008 05:39   |
Eclipse User |
|
|
|
Hello Jan,
Thanks again for your reply.
I wanted to say that after we added a flowLayout on the container,
it doesn't accept anymore any children.
For instance, after I select from the palette the children and put the
mouse cursor on the compartment bounds, it's impossible to click and add
this children inside.
As I feel I don't have the right behavior, maybe will you need some file
or code snippets where I can reproduce it ?
Thanks,
Ivan
Jan Köhnlein wrote:
> Ivan-
> what do you mean by "add anything back in the container"?
> I'd suggest you put a FlowLayout on the container with
> Force Single Line = true
> Major Alignment = BEGINNING
> Major Spacing = 0
> Match minor size = true
> Minor Alignment = CENTER
> Minor Spacing = 0
> Vertical = true
> This should cause the children of the container to be arranged
> vertically (vertical, single line), starting from the top (Major
> Alignment) of the container with no space vertically between them (Major
> Spacing) nor left or right (Minor Spacing), and each taking the full
> width of the container (Match Minor Size).
> -Jan
|
|
|
|
Powered by
FUDForum. Page generated in 0.04394 seconds