Problems with a layout: not resize the Top Nodes [message #515293] |
Thu, 18 February 2010 11:26 |
|
Hello everybody!
I have implemented a new LayoutEditPartProvider to resize and relocate all the nodes places in my diagram in order to remove the scrolls in the compartments and maximize the space in the diagram to see all the elements correctly.
It works well, but doesn't resize the Top Node elements. All the other elements are correctly resized and relocated, but the Top Node elements only are relocated correctly, not resized. And I don't know why, because the SetBoundsCommand that I have done changes booth the location and the size... But when finishes the layout, this sizes are not changed.
Anybody knows what's happening?
If you allow me, I take the opportunity to propose if you want to add this provider to GMF diagrams by default, because I think it's very useful.
Thanks a lot.
Marc
|
|
|
Re: Problems with a layout: not resize the Top Nodes [message #515362 is a reply to message #515293] |
Thu, 18 February 2010 15:09 |
|
Hi!
Well, now I know why the Top Nodes are not resized. It's due to the Snap Command added at the end of the ArrangeCommand (the set of commands added by my layout). This Snap Command, takes the Size from the Figure of the EditPart, not from the Node, and it leaves the EditPart in its origin size.
Removing this Snap Command is enough, but I will try to find a possible solution...
Thanks everybody!
Marc
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03524 seconds