Bug 566081

Summary: Copy Paste Format doesn't take border size into account
Product: [Modeling] Sirius Reporter: Jessy Mallet <jessy.mallet>
Component: DiagramAssignee: Project Inbox <sirius.diagram-inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3 CC: julien.dupont
Version: 6.3.2Keywords: triaged
Target Milestone: ---   
Hardware: PC   
OS: Windows 10   
Whiteboard:
Attachments:
Description Flags
Use case to reproduce error
none
scenario none

Description Jessy Mallet CLA 2020-08-14 09:07:42 EDT
Created attachment 283872 [details]
Use case to reproduce error

Paste format action does not take into account border size for new location of children of a container with a border.
Indeed, if you have a container with a large border which contained nodes, this format pasted on an other diagram will not position children in the right place. New coordinates of container children nodes will be equal to newX=x-border, newY=y-border (with x,y coordinates of children on diagram with the format copied) (see attached screenshot).



Steps to reproduce :

1- Import the attached projet called testCopyPasteLayout,
2- Open diagrams "diag_with_format_to_apply" and "diag_with_format_to_copy",
3- Copy format of elements froms diagram "diag_with_format_to_copy",
4- Paste format on second diagram "diag_with_format_to_apply", children of the conatainer have a bad position (x=x-border, y=y-border) wherea they should be  at the same position as in diagram "diag_with_format_to_copy"
(5- A second Paste will place children of the container to the correct position.)
Comment 1 Jessy Mallet CLA 2020-08-14 09:08:33 EDT
Created attachment 283873 [details]
scenario