Bug 577957 - Wrong size of "regions", in regions container of type "title block" like in Capella, after a manual creation with a given size
Summary: Wrong size of "regions", in regions container of type "title block" like in C...
Status: ASSIGNED
Alias: None
Product: Sirius
Classification: Modeling
Component: Diagram (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 10
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Laurent Redor CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-12-24 10:31 EST by Laurent Redor CLA
Modified: 2021-12-24 11:32 EST (History)
0 users

See Also:


Attachments
wrongSizeAfterCreationWithManualSize.png (13.40 KB, image/png)
2021-12-24 10:31 EST, Laurent Redor CLA
no flags Details
TitleBlockReproductionCaseLikeCapella.zip (3.32 KB, application/x-zip-compressed)
2021-12-24 10:39 EST, Laurent Redor CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Laurent Redor CLA 2021-12-24 10:31:27 EST
Created attachment 287727 [details]
wrongSizeAfterCreationWithManualSize.png

Steps to reproduce:
* Import project TitleBlockReproductionCaseLikeCapella from TitleBlockReproductionCaseLikeCapella.zip
* Open diagram "new DiagramLikeCapella"
* Create a "Title block" by doing a "drag'n'drop click" (from {100;100} to {500;400} for example.
--> KO : The "cells" have their default size, 100x50 defined in VSM. They must fill all the space of the container.

Example of bad result in wrongSizeAfterCreationWithManualSize.png
Comment 1 Laurent Redor CLA 2021-12-24 10:39:18 EST
Created attachment 287728 [details]
TitleBlockReproductionCaseLikeCapella.zip
Comment 2 Laurent Redor CLA 2021-12-24 10:40:55 EST
The behavior seems random, even after fix done for bug 577676 and bug 576305.
Comment 3 Eclipse Genie CLA 2021-12-24 11:05:27 EST
New Gerrit change created: https://git.eclipse.org/r/c/sirius/org.eclipse.sirius/+/189125
Comment 4 Laurent Redor CLA 2021-12-24 11:32:50 EST
Technical information: 
In the first steps of the creation, the size of the drawn rectangle is set in GMF constraint of the "title block container" in method org.eclipse.sirius.diagram.ui.internal.refresh.AbstractCanonicalSynchronizer.updateDDiagramChildBounds(View, View) by getting size stored in SiriusLayoutDataManager during creation.
And then the method org.eclipse.sirius.diagram.ui.internal.refresh.diagram.DDiagramCanonicalSynchronizer.manageRegions() is called. Maybe this method is a good starting point.

To see next year...