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

Bug 501082

Summary: Compartment layout problem when remove an element
Product: [Modeling] Sirius Reporter: Julien Dupont <julien.dupont>
Component: DiagramAssignee: Project Inbox <sirius.diagram-inbox>
Status: RESOLVED INVALID QA Contact:
Severity: normal    
Priority: P3 CC: maxime.porhel
Version: 4.0.0Keywords: triaged
Target Milestone: ---   
Hardware: PC   
OS: Windows NT   
Whiteboard:
Bug Depends on: 495707    
Bug Blocks:    
Attachments:
Description Flags
Use case to reproduce problem none

Description Julien Dupont CLA 2016-09-08 11:38:42 EDT
Created attachment 264048 [details]
Use case to reproduce problem

When we remove an element in a compartiment the default size is applied to compartiment. It's strange as behavior.

Steps to reproduce:
* Import the project CompartimentsLayoutProblem from attached archive file (CompartimentsLayoutProblem2.zip)
* Open the diagram "VStackDiag"
* Delete Left_Class1
* The compartiment is resized to default size KO. It should keep the vertical size.
Comment 1 Maxime Porhel CLA 2016-09-20 10:20:32 EDT
This behavior depends on the "auto-size" state of the compartimented diagram element. 

In the provided sample diagram all GMF bounds are set to (-1, -1), the layout adapt the size of each region to their content (included label), if the user removes the first compartment, the two others are empty and take the default minimum size. 

If the user resize the P1 container or one of the compartment before deleting the first region, after the delete the other regions will keep their size.