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

Bug 496985

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: 4.0.0Keywords: triaged
Target Milestone: 4.1.0   
Hardware: All   
OS: All   
See Also: https://git.eclipse.org/r/76180
https://git.eclipse.org/r/76221
https://git.eclipse.org/r/76487
https://git.eclipse.org/r/76593
https://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=7f3323ca36c9c6b1c67e6cb579f963710f1c3a33
https://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=12753e93be56799d11e6fee53cb32314f9e9d444
Whiteboard:
Bug Depends on:    
Bug Blocks: 497405, 499830    
Attachments:
Description Flags
Bug496985.zip none

Description Laurent Redor CLA 2016-06-29 05:54:08 EDT
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-06-29 10:46:07 EDT
New Gerrit change created: https://git.eclipse.org/r/76221
Comment 2 Laurent Fasani CLA 2016-06-30 11:45:35 EDT
Thanks for your detailed bug report.
We have reproduced this issue and we consider it as valid.
Nevertheless, we have currently not planned to work on it in the following releases.
Comment 3 Eclipse Genie CLA 2016-07-04 03:43:33 EDT
New Gerrit change created: https://git.eclipse.org/r/76487
Comment 4 Eclipse Genie CLA 2016-07-05 06:55:50 EDT
New Gerrit change created: https://git.eclipse.org/r/76593
Comment 7 Laurent Redor CLA 2016-09-02 09:38:40 EDT
(In reply to Laurent Redor from comment #0)
> 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.

for the first step of reprduce, you can use the project "Bug496985" from Bug496985.zip
Comment 8 Laurent Redor CLA 2016-09-02 09:39:00 EDT
Created attachment 263931 [details]
Bug496985.zip
Comment 9 Pierre-Charles David CLA 2016-10-18 11:08:13 EDT
Available in Sirius 4.1.0, see https://wiki.eclipse.org/Sirius/4.1.0 for details.