Bug 494594 - Unable to Resize Vertical Stacked Containers
Summary: Unable to Resize Vertical Stacked Containers
Status: NEW
Alias: None
Product: Sirius
Classification: Modeling
Component: Diagram (show other bugs)
Version: 3.1.0   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Maxime Porhel CLA
QA Contact:
URL:
Whiteboard:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2016-05-25 18:44 EDT by Parsa Pourali CLA
Modified: 2016-06-09 05:24 EDT (History)
3 users (show)

See Also:


Attachments
Example image of the problem (29.98 KB, image/png)
2016-05-25 18:44 EDT, Parsa Pourali CLA
no flags Details
Example to reproduce problem (6.56 KB, application/zip)
2016-05-26 05:27 EDT, Julien Dupont CLA
no flags Details

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