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

Bug 497405

Summary: Size problem after drag'n'drop of a regions container
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: All   
OS: All   
See Also: https://git.eclipse.org/r/76751
https://git.eclipse.org/r/76752
https://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=046458d4176643a62d5ce6551d55dc5ffa9f8a4e
https://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=b3130e5b0351887314a29c03725cc7ea7d5e9a80
Whiteboard:
Bug Depends on: 496985, 499830    
Bug Blocks:    

Description Laurent Redor CLA 2016-07-06 11:27:09 EDT
+++ This bug was initially created as a clone of Bug #496985 +++

Unlike classical container, when a regions container is drag'n'dropped from
a container to another one, it loses is size.
In Sirius 4.0, the behavior is different between "Horizontal Stack" and "Vertical Stack". In "Horizontal Stack", the regions container is auto-sized after the drag'n'drop. In "Vertical Stack", the regions container is auto-sized only in one direction and the regions are auto-sized (the same bug concerning size of regions as in bug 495046).

After fix of bug 495046 and of bug 495119, the behavior is similar in "Horizontal Stack" and "Vertical Stack": the regions container is auto-sized after the drag'n'drop.
This is probably due to the layout specificity of the regions container (always in {-1, -1}, the dimension is handled by its region children).

Steps to reproduce:
* Open VStackDiag with DnD (of https://git.eclipse.org/r/76180)
* Drag'n'drop "cccc" from "aaaa" in diagram
* KO: The new "cccc" container is auto-sized.
Comment 1 Eclipse Genie CLA 2016-07-06 12:59:58 EDT
New Gerrit change created: https://git.eclipse.org/r/76751
Comment 2 Eclipse Genie CLA 2016-07-06 13:00:02 EDT
New Gerrit change created: https://git.eclipse.org/r/76752
Comment 5 Pierre-Charles David CLA 2016-10-11 04:39:08 EDT
Available in Sirius 3.1.6.