Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 495046

Summary: The containers, with horizontal or vertical stack as children presentation type, do not respect the initial user size
Product: [Modeling] Sirius Reporter: Laurent Redor <laurent.redor>
Component: DiagramAssignee: Laurent Redor <laurent.redor>
Status: CLOSED FIXED QA Contact: Julien Dupont <julien.dupont>
Severity: normal    
Priority: P3 CC: julien.dupont, laurent.fasani
Version: 3.1.0Keywords: triaged
Target Milestone: 4.1.0   
Hardware: PC   
OS: Windows NT   
See Also: https://bugs.eclipse.org/bugs/show_bug.cgi?id=495119
https://bugs.eclipse.org/bugs/show_bug.cgi?id=495707
Whiteboard:
Bug Depends on:    
Bug Blocks: 492607, 497402    
Attachments:
Description Flags
WrongSizeComparedToExectedInitialUserSize.png
none
compartments.zip none

Description Laurent Redor CLA 2016-05-31 12:09:38 EDT
Created attachment 262135 [details]
WrongSizeComparedToExectedInitialUserSize.png

There are concretely 3 distinct problems.

Steps to reproduce:
* Imports the project from compartments.zip (this use case is a copy from automatic tests /org.eclipse.sirius.tests.junit/data/unit/compartments with an addition of a tool)
* Open the diagram VStackDiag
* Use the tool EPackage to create a package container on the diagram:
** with default size (only one click on the diagram): OK
** with a defined size (use a click plus a drag with button press, on the diagram): OK
* Use the tool EPackageWithOneClass to create a package container with a class inside it:
** with default size (only one click on the diagram): KO: There is a scroll bar on the container as if the class child was a little too big. This problem is maybe linked to bug 484939.
** with a defined size (use a click plus a drag with button press, on the diagram): KO:
*** the vertical size of the container does not respect the size defined by the user
*** the horizontal size of the child does not fit its container
Comment 1 Laurent Redor CLA 2016-05-31 12:11:23 EDT
The WrongSizeComparedToExectedInitialUserSize.png shows the rectangle drawn by the user during the tool creation and the resulting container that does not respect the initial rectangle.
Comment 2 Laurent Redor CLA 2016-05-31 12:45:00 EDT
For first problem:

> with default size (only one click on the diagram): KO: There is a scroll bar on the container as if the class child was a little too big. This problem is maybe linked to bug 484939.

The problem is the same if you create a package with tool "EPackage" and then add an "EClassList" in the existing package.
Comment 3 Laurent Redor CLA 2016-06-01 04:52:48 EDT
The first problem will be dealt in another bug (bug 495119) as it seems to have a different cause.
Comment 4 Laurent Redor CLA 2016-06-03 08:49:48 EDT
Created attachment 262220 [details]
compartments.zip
Comment 5 Laurent Redor CLA 2016-07-06 11:07:17 EDT
This issue has been indirectly resolved with the fix of bug 495119.
Comment 6 Pierre-Charles David CLA 2016-10-18 11:07:07 EDT
Available in Sirius 4.1.0, see https://wiki.eclipse.org/Sirius/4.1.0 for details.