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

Bug 526073

Summary: Activate "Make same size" action on region container
Product: [Modeling] Sirius Reporter: Florian Barbin <florian.barbin>
Component: DiagramAssignee: Laurent Fasani <laurent.fasani>
Status: CLOSED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: laurent.fasani, laurent.redor, maxime.porhel
Version: 5.1.0Keywords: triaged
Target Milestone: 5.1.1   
Hardware: All   
OS: All   
See Also: https://git.eclipse.org/r/109974
https://bugs.eclipse.org/bugs/show_bug.cgi?id=497054
https://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=22cf133b0952855f749a391d2d1e0dead3685f8b
https://bugs.eclipse.org/bugs/show_bug.cgi?id=573405
Whiteboard:
Attachments:
Description Flags
A use case with region containers none

Description Florian Barbin CLA 2017-10-16 06:19:10 EDT
Created attachment 271014 [details]
A use case with region containers

* The Auto Size action is currently unavailable for region container (see bug 497054). The behavior should be the same than the one when applying the auto-size on a region.

* The make same size is deactivated for both region and region container.
** It should be activated for region by modifying the region width (horizontal stack) or height (vertical stack) and the container size if necessary.

** If the last selected element is a region container, the make same size will be apply - in a first iteration - on region containers with the same number of regions by applying the same size for each region.
Comment 1 Maxime Porhel CLA 2017-10-18 03:47:19 EDT
This issue might be corrected in 5.1.x (and master)
Comment 2 Laurent Redor CLA 2017-12-06 05:43:23 EST
This bugzilla only covers simple case where the reference region container has a greater or equals number of regions than other region containers in selected elements.
Comment 4 Florian Barbin CLA 2018-01-03 11:40:17 EST
Steps to validate:
* Open the HStackDiag diagram
* Select PI and az
* Apply the "Make Same Size" action
* All regions of P1 have the size of regions of az
* Revert
* Select az and P1
* Apply the "Make Same Size" action
* All regions of az have the size of regions of P1
* Revert
* Remove a region from az
* Select az and P1
* Apply the "Make Same Size" action
* The last region of az has the size of both two last regions of P1.
* Do the same scenario with VStackDiag
Comment 5 Laurent Fasani CLA 2018-01-08 04:20:41 EST
Being homologated...
Comment 6 Laurent Fasani CLA 2018-01-08 04:36:45 EST
Validated with Sirius 5.1.1rc2
Comment 7 Pierre-Charles David CLA 2018-02-01 03:25:20 EST
Available in Sirius 5.1.1. See https://wiki.eclipse.org/Sirius/5.1.1 for details.