Bug 496985 - 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.1.0   Edit
Assignee: Laurent Redor CLA
QA Contact: Julien Dupont CLA
URL:
Whiteboard:
Keywords: triaged
Depends on:
Blocks: 497405 499830
  Show dependency tree
 
Reported: 2016-06-29 05:54 EDT by Laurent Redor CLA
Modified: 2016-10-18 11:08 EDT (History)
2 users (show)

See Also:


Attachments
Bug496985.zip (17.41 KB, application/x-zip-compressed)
2016-09-02 09:39 EDT, Laurent Redor CLA
no flags Details

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