Bug 494594

Summary: Unable to Resize Vertical Stacked Containers
Product: [Modeling] Sirius Reporter: Parsa Pourali <pourali_parsa>
Component: DiagramAssignee: Maxime Porhel <maxime.porhel>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3 CC: julien.dupont, maxime.porhel, pourali_parsa
Version: 3.1.0Keywords: triaged
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
Example image of the problem
none
Example to reproduce problem none

Description Parsa Pourali CLA 2016-05-25 18:44:39 EDT
Created attachment 262009 [details]
Example image of the problem

Hi,

I have a State Machine, which has States. These States can have Regions inside. and Regions can have States and so on ...

The problem is that I can't resize States that do not have inner Regions, I can only resize States which have inner Regions. 

e.g. in the attached example image, I can resize S0, S1 and S3, but cannot resize S2, even though it shows points to resize on the figure.

The States are Vertical Stacks and Regions are Free Form containers. 

I asked it on the forum, but it seems that it is intended to be like this. However, I think the user should always be able to resize the nodes.

Thanks,
Best Regards,
Parsa
Comment 1 Julien Dupont CLA 2016-05-26 05:27:05 EDT
Created attachment 262019 [details]
Example to reproduce problem

A simple example to reproduce problem.

Open the representation named "new Diagram", the p2 container can not be resize while p1 can be.
Comment 2 Maxime Porhel CLA 2016-06-09 05:24:36 EDT
The resize of a RegionContainer without Region (ie a Container whose mapping specification defines compartments but which has no compartments yet, base on the semantic state) is currently forbidden. This is done in o.e.s.diagram.ui.graphical.edit.policies.RegionContainerResizableEditPolicy.completeResizeCommand() - line 143. 

We should not put the UnexecutableCommand if there is no region yet, but the layout behavior and the size management will have to be checked.
Comment 3 Maxime Porhel CLA 2016-06-09 05:24:36 EDT
The resize of a RegionContainer without Region (ie a Container whose mapping specification defines compartments but which has no compartments yet, base on the semantic state) is currently forbidden. This is done in o.e.s.diagram.ui.graphical.edit.policies.RegionContainerResizableEditPolicy.completeResizeCommand() - line 143. 

We should not put the UnexecutableCommand if there is no region yet, but the layout behavior and the size management will have to be checked.