Bug 562657 - FillLayout does not work with a dynamic mapping
Summary: FillLayout does not work with a dynamic mapping
Status: NEW
Alias: None
Product: Sirius
Classification: Modeling
Component: Properties (show other bugs)
Version: 6.3.0   Edit
Hardware: PC Windows 10
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2020-04-30 06:33 EDT by Cedric Notot CLA
Modified: 2020-05-04 11:22 EDT (History)
1 user (show)

See Also:


Attachments
Example on basicfamily (11.91 KB, application/x-zip-compressed)
2020-04-30 06:35 EDT, Cedric Notot CLA
no flags Details
The broken (vertically stacked) widget layout when using a for loop (77.77 KB, image/png)
2020-05-04 11:21 EDT, Pierre-Charles David CLA
no flags Details
The correct (horizontal) widget layout when the for loop is not used (72.39 KB, image/png)
2020-05-04 11:22 EDT, Pierre-Charles David CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Cedric Notot CLA 2020-04-30 06:33:33 EDT
If you use a dynamic mapping (with several conditions) in a container description with a Fill Layout Horizontal, this last one is not applied.

A workaround could consist in using a Grid Layout (if you know the number of widgets to be displayed).
Comment 1 Cedric Notot CLA 2020-04-30 06:35:05 EDT
Created attachment 282633 [details]
Example on basicfamily
Comment 2 Pierre-Charles David CLA 2020-05-04 11:20:14 EDT
Confirmed, thanks for the report.

Steps to reproduce:

1. Import the basic family metamodel & launch a runtime, or install it directly in the host
2. Import the attached project in the workspace.
3. Create a modeling project with a sample basicfamily instance, for example using the "Basic Family Sample Model" example.
4. Enable the viewpoint defined in the test VSM.
5. Create and open a diagram on the sample model.
6. Select one of the "Person" on the diagram.

Expected: the "First name" and "Last name" properties should be on the same line, as requested by the "HORIZONTAL" Fill Layout defined in the VSM.

Actual: the two properties are stacked vertically (default layout).

In the VSM, if you move the firstName & lastName widgets out of the For loop (and remove the loop) and then save, the HORIZONTAL layout is correctly applied.
Comment 3 Pierre-Charles David CLA 2020-05-04 11:21:42 EDT
Created attachment 282686 [details]
The broken (vertically stacked) widget layout when using a for loop
Comment 4 Pierre-Charles David CLA 2020-05-04 11:22:13 EDT
Created attachment 282687 [details]
The correct (horizontal) widget layout when the for loop is not used