| Summary: | Bordered node’s custom size not always taken into account | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Modeling] Sirius | Reporter: | Vincent Sennedot <vincent.sennedot> | ||||
| Component: | Diagram | Assignee: | Project Inbox <sirius.diagram-inbox> | ||||
| Status: | CLOSED INVALID | QA Contact: | |||||
| Severity: | major | ||||||
| Priority: | P3 | CC: | laurent.redor, maxime.porhel | ||||
| Version: | 3.0.0 | Keywords: | triaged | ||||
| Target Milestone: | --- | ||||||
| Hardware: | PC | ||||||
| OS: | Windows 8 | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Vincent Sennedot
Hi, thanks for your feedback. Could you give us more information or provide a simple/sample reproduction case ? How do you specify you custom size: do you use Height/Width attributes of the SquareDescription or the SizeComputationExpression ? Regards Hi, I've juste created an example with the basic family example. The men are represented by container mappings and their parents are represented by bordered node mappings. Thera Created attachment 258994 [details]
Example for the bordered node size bug
Sorry for the precedent post, it sends it before I finish it.
I've just created an example with the basic family example. The men are represented by container mappings and their parents are represented by bordered node mappings.
There are a diagram for the family and two diagrams for the man Elias:
- The first Elias diagram is created from the “New Representation” button in Project Explorer and it works correctly
- The second diagram is created with the diagram creation tool defined in the odesign and the bordered node take the size of the bordered node in the family diagram
But I’ve noticed if you delete the bordered node mapping from the family diagram in the odesign, the man diagrams are correctly created in both case.
This is not a bug. It works as designed. When a diagram is created from another, if the elements represented in the new diagram are already in the existing diagram, we copy their layouts. This is done with oes.diagram.ui.tools.internal.commands.InitializeLayoutCommand (called in oes.diagram.ui.tools.internal.actions.CreateRepresentationFromRepresentationCreationDescription.executeCreationCommand(Option<Command>, CreateRepresentationCommand)). Unfortunately, there is currently no way to disable this behavior. As mentioned by Laurent, this described behavior works as designed thanks to the layout copy done from the diagram on which the new diagram creation was called. I close this issue as invalid. Feel free to open a new bugzilla if you need the capability to disable this behavior. |