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

Bug 497403

Summary: Wrong compartments/regions size and useless scroll bar
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: 3.1.6   
Hardware: PC   
OS: Windows NT   
See Also: https://git.eclipse.org/r/76746
https://git.eclipse.org/r/76749
https://git.eclipse.org/r/76747
https://git.eclipse.org/r/76748
https://git.eclipse.org/r/76750
https://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=fa3d1d6c8b52f6e3f803b651cd0237df890eb0d6
https://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=e09517be10bbf33eb1e3a3292c33be881a7261b4
https://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=e7c1cdc749f0c41353015127bd0b4cbd965c47b6
https://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=d9b31c458e421589d59903180c34fc8ccf5ab13c
https://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=aec92a71602d9b00e1735951d9ebd7f475cfe334
Whiteboard:
Bug Depends on: 495119, 499828    
Bug Blocks: 492607    

Description Laurent Redor CLA 2016-07-06 11:26:06 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 Eclipse Genie CLA 2016-07-06 12:59:54 EDT
New Gerrit change created: https://git.eclipse.org/r/76746
Comment 2 Eclipse Genie CLA 2016-07-06 12:59:59 EDT
New Gerrit change created: https://git.eclipse.org/r/76749
Comment 3 Eclipse Genie CLA 2016-07-06 13:00:01 EDT
New Gerrit change created: https://git.eclipse.org/r/76747
Comment 4 Eclipse Genie CLA 2016-07-06 13:00:05 EDT
New Gerrit change created: https://git.eclipse.org/r/76748
Comment 5 Eclipse Genie CLA 2016-07-06 13:00:08 EDT
New Gerrit change created: https://git.eclipse.org/r/76750
Comment 11 Pierre-Charles David CLA 2016-10-11 04:39:10 EDT
Available in Sirius 3.1.6.