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

Bug 499830

Summary: Size problem after drag'n'drop of a regions container
Product: [Modeling] Sirius Reporter: Pierre-Charles David <pierre-charles.david>
Component: DiagramAssignee: Laurent Redor <laurent.redor>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: julien.dupont, laurent.fasani, laurent.redor
Version: 4.0.0Keywords: triaged
Target Milestone: 4.0.1   
Hardware: All   
OS: All   
See Also: https://git.eclipse.org/r/79526
https://git.eclipse.org/r/79527
https://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=2c6de92b0c405e5722675474917c4714f9b472ee
https://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=56cbc89006024281acff3d94472f03792ebf5d96
Whiteboard:
Bug Depends on: 496985    
Bug Blocks: 497405    

Description Pierre-Charles David CLA 2016-08-17 08:56:36 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 Pierre-Charles David CLA 2016-08-17 08:56:49 EDT
Cloned to report the fix in Sirius 4.0.1.
Comment 2 Eclipse Genie CLA 2016-08-23 09:52:41 EDT
New Gerrit change created: https://git.eclipse.org/r/79526
Comment 3 Eclipse Genie CLA 2016-08-23 09:52:48 EDT
New Gerrit change created: https://git.eclipse.org/r/79527
Comment 6 Julien Dupont CLA 2016-08-30 08:34:52 EDT
Impossible to drag'n drop cccc from aaaa in diagram.
Nothing happens when doing drag'n drop.

Thanks to add use case directly to ticket.
Comment 7 Laurent Redor CLA 2016-09-02 09:39:43 EDT
Can you try with the attachment made for Sirius 4.1.0: https://bugs.eclipse.org/bugs/attachment.cgi?id=263931 ?
Comment 8 Pierre-Charles David CLA 2016-11-04 10:15:31 EDT
Available in Sirius 4.0.1. See https://wiki.eclipse.org/Sirius/4.0.1.