|
|
Re: Region in a container does not auto-fit to the parent container [message #1728077 is a reply to message #1728056] |
Wed, 30 March 2016 15:17   |
Eclipse User |
|
|
|
Hi Maxime,
Thanks for your reply,
>Was it observed "live editing" mode with the diagram already created
>before several modifications on the mapping or style ? From free form to
>vertical stack, modification of size expression ?
>Could you give us more information on the Style of the Container >mapping
>and the style of the region mapping ? Do you have only one >regionmapping
>or two ? Which kind of style ? Could you also put some details about the
>size expressions ?
This happens when: From my class diagram, I right click on a class and choose "Create State Diagram". Then, I create a state machine object in the model, and a main region inside it and also an initial state for the user to start with. Then I use Navigate tool in Sirius to create and open a new state diagram associated to the object I just created. And the image is what I get !
The outer region : "SM_F4: StateDiagram" is a vertical stack (to show multiple concurrent regions). The size for Height Computation Expression and Width Computation Expression is set to 50 , 30. I changed it to -1 and -1 and it will be autosized. However it will become a very small box (I need 50X30 as the size).
The inner Region "main" is a Free Form container and also with the size of -1 and -1.
So, everything is fine when I myself open the diagram , resize the outer region. It only occurs when I use Navigate to create the diagram.
The other thing is that when this happens, I tried to add the second region (in the outer vertical stack region), it fixed the main region and the main region will also become automatically fit to the parent one.
So, I guess the problem is only with using Navigate.
Thanks a lot,
Regards,
Parsa
|
|
|
Re: Region in a container does not auto-fit to the parent container [message #1730640 is a reply to message #1728077] |
Wed, 27 April 2016 06:00   |
Eclipse User |
|
|
|
Hi Parsa,
Could you try to set the height of the inner region (keep width at -1)
and the width of the stack container (and height -1) ?
If you succeed to reproducde your difference issue between navigate
action and creation of a diagram, could you also create a bugzilla for
that ?
Le 30/03/2016 21:17, Parsa Pourali a écrit :
> Hi Maxime,
>
> Thanks for your reply,
>
>> Was it observed "live editing" mode with the diagram already created
>> before several modifications on the mapping or style ? From free form
>> to vertical stack, modification of size expression ?
>
>> Could you give us more information on the Style of the Container
>> >mapping and the style of the region mapping ? Do you have only one
>> >regionmapping or two ? Which kind of style ? Could you also put some
>> details about the size expressions ?
>
> This happens when: From my class diagram, I right click on a class and
> choose "Create State Diagram". Then, I create a state machine object in
> the model, and a main region inside it and also an initial state for the
> user to start with. Then I use Navigate tool in Sirius to create and
> open a new state diagram associated to the object I just created. And
> the image is what I get !
>
> The outer region : "SM_F4: StateDiagram" is a vertical stack (to show
> multiple concurrent regions). The size for Height Computation Expression
> and Width Computation Expression is set to 50 , 30. I changed it to -1
> and -1 and it will be autosized. However it will become a very small box
> (I need 50X30 as the size).
>
> The inner Region "main" is a Free Form container and also with the size
> of -1 and -1.
>
> So, everything is fine when I myself open the diagram , resize the outer
> region. It only occurs when I use Navigate to create the diagram.
>
> The other thing is that when this happens, I tried to add the second
> region (in the outer vertical stack region), it fixed the main region
> and the main region will also become automatically fit to the parent one.
>
> So, I guess the problem is only with using Navigate.
>
> Thanks a lot,
> Regards,
> Parsa
>
Regards
--
Maxime - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
|
Powered by
FUDForum. Page generated in 0.02941 seconds