Bug 566081 - Copy Paste Format doesn't take border size into account
Summary: Copy Paste Format doesn't take border size into account
Status: NEW
Alias: None
Product: Sirius
Classification: Modeling
Component: Diagram (show other bugs)
Version: 6.3.2   Edit
Hardware: PC Windows 10
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2020-08-14 09:07 EDT by Jessy Mallet CLA
Modified: 2020-08-14 09:14 EDT (History)
1 user (show)

See Also:


Attachments
Use case to reproduce error (6.54 KB, application/x-zip-compressed)
2020-08-14 09:07 EDT, Jessy Mallet CLA
no flags Details
scenario (55.28 KB, image/png)
2020-08-14 09:08 EDT, Jessy Mallet CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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