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

Bug 499828

Summary: Wrong compartments/regions size and useless scroll bar
Product: [Modeling] Sirius Reporter: Pierre-Charles David <pierre-charles.david>
Component: DiagramAssignee: Laurent Redor <laurent.redor>
Status: CLOSED FIXED QA Contact: Julien Dupont <julien.dupont>
Severity: normal    
Priority: P3 CC: julien.dupont, laurent.fasani, laurent.redor
Version: 3.1.0Keywords: triaged
Target Milestone: 4.0.1   
Hardware: PC   
OS: Windows NT   
See Also: https://git.eclipse.org/r/79521
https://git.eclipse.org/r/79524
https://git.eclipse.org/r/79523
https://git.eclipse.org/r/79522
https://git.eclipse.org/r/79528
https://git.eclipse.org/r/79525
https://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=ec3ddde112186e2657abb37087fbe893de7c4c7d
https://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=161dec13bf10e06ba2f3f880cf73f213ff3606cb
https://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=8533a3e11f8cc11ade7a7844a87f799e313fc916
https://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=6a4e8a72861ee3e07134702a412ff00e7597f9a0
https://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=eec41fd6e3d20a9178ccc715f5924e2336767aec
https://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=94c6f0060eccb26b466093de073306f072ec936b
Whiteboard:
Bug Depends on: 495119    
Bug Blocks: 492607, 497403    

Description Pierre-Charles David CLA 2016-08-17 08:55:29 EDT
+++ This bug was initially created as a clone of Bug #495119 +++

If a size is defined in the VSM for a container with VStack or HStack as children presentation type, this can lead to a useless scroll bar.

Steps to reproduce:
* Imports the project from compartments.zip (https://bugs.eclipse.org/bugs/attachment.cgi?id=262135 from bug 495046)
* 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)
* Use the tool EClassList to create a class in the package
* KO: A scroll bar appears in the container. 

Another steps to reproduce:
* Use same diagram
* Use the tool EPackageWithOneClass to create a package container with a class inside it with default size (only one click on the diagram)
* KO: A scroll bar appears in the container.

This scroll bar does not disappear even if the container is resized.

The problem does not exist if the size of the VStack container mapping defined of the VSM is {-1, -1} instead of {5, 5}.
Comment 1 Pierre-Charles David CLA 2016-08-17 08:55:55 EDT
Cloned to report the fix in Sirius 4.0.1.
Comment 2 Eclipse Genie CLA 2016-08-23 09:52:39 EDT
New Gerrit change created: https://git.eclipse.org/r/79521
Comment 3 Eclipse Genie CLA 2016-08-23 09:52:42 EDT
New Gerrit change created: https://git.eclipse.org/r/79524
Comment 4 Eclipse Genie CLA 2016-08-23 09:52:44 EDT
New Gerrit change created: https://git.eclipse.org/r/79523
Comment 5 Eclipse Genie CLA 2016-08-23 09:52:46 EDT
New Gerrit change created: https://git.eclipse.org/r/79522
Comment 6 Eclipse Genie CLA 2016-08-23 09:52:50 EDT
New Gerrit change created: https://git.eclipse.org/r/79528
Comment 7 Eclipse Genie CLA 2016-08-23 09:52:52 EDT
New Gerrit change created: https://git.eclipse.org/r/79525
Comment 14 Pierre-Charles David CLA 2016-11-04 10:15:34 EDT
Available in Sirius 4.0.1. See https://wiki.eclipse.org/Sirius/4.0.1.