Bug 499830 - Size problem after drag'n'drop of a regions container
Summary: Size problem after drag'n'drop of a regions container
Status: CLOSED FIXED
Alias: None
Product: Sirius
Classification: Modeling
Component: Diagram (show other bugs)
Version: 4.0.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 4.0.1   Edit
Assignee: Laurent Redor CLA
QA Contact:
URL:
Whiteboard:
Keywords: triaged
Depends on: 496985
Blocks: 497405
  Show dependency tree
 
Reported: 2016-08-17 08:56 EDT by Pierre-Charles David CLA
Modified: 2016-11-04 10:15 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.