Bug 537670 - Select dropdown in properties does not change size when options change
Summary: Select dropdown in properties does not change size when options change
Status: NEW
Alias: None
Product: Sirius
Classification: Modeling
Component: Properties (show other bugs)
Version: 6.0.0   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2018-08-03 12:36 EDT by Louis Detweiler CLA
Modified: 2018-11-22 03:57 EST (History)
2 users (show)

See Also:


Attachments
Sample project to try to reproduce the issue (3.12 KB, application/zip)
2018-11-22 03:16 EST, Pierre-Charles David CLA
no flags Details
Sample video illustrating the reproduction steps (781.32 KB, video/mp4)
2018-11-22 03:17 EST, Pierre-Charles David CLA
no flags Details
Sample video to reproduce on Windows (6.95 MB, video/mp4)
2018-11-22 03:50 EST, Laurent Fasani CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Louis Detweiler CLA 2018-08-03 12:36:42 EDT
For example, if there are no options for a select dropdown when a diagram element is selected, the dropdown is very small as there is nothing to display. Then, if the available options are changed due to say, some other change in the properties panel, the size of the dropdown does not grow to accommodate the new choices in the dropdown and the full text of the options can not be seen.
Comment 1 Pierre-Charles David CLA 2018-11-22 03:16:36 EST
Created attachment 276652 [details]
Sample project to try to reproduce the issue

It seems the behavior is actually OS-specific, but ugly/wrong on at least Wndows and Linux.

Steps to reproduce:
1. Import the attached project and open the diagram.
2. Select node "A"; in the properties view, the combo showing all A's attributes should only show attribute "a" and be sized correctly for this content.
3. Keep node "A" selected (this is important), and apply the "Add attr" tool from the palette in the node. Under Linux, the combo is automatically resized to match the size of the new attribute (with a very long name), *but* the resizing is not done in the correct direction and breaks the view's layout. => KO
4. Deselect and reselect node "A", the properties view is recreated and this time with a correct layout.
Comment 2 Pierre-Charles David CLA 2018-11-22 03:17:05 EST
Created attachment 276653 [details]
Sample video illustrating the reproduction steps
Comment 3 Laurent Fasani CLA 2018-11-22 03:50:38 EST
Created attachment 276655 [details]
Sample video to reproduce on Windows
Comment 4 Laurent Fasani CLA 2018-11-22 03:57:27 EST
The behavior on windows is effectively different with Linux.
See attached video  Sample video to reproduce on Windows

Steps to reproduce on Windows:(same as Linux but with a different system response)
1. Import the attached project and open the diagram.
2. Select node "A"; in the properties view, the dropdown combo showing all A's attributes should only show attribute "a" and be sized correctly for this content.
3. Keep node "A" selected (this is important), and apply the "Add attr" tool from the palette in the node.
-> KO: On Windows, the dropdown combo is not resized
3bis. Click on dropdown combo
-> the item are displayed with correct size
3ter. Select second item which has the largest size
-> KO: the dropdown combo is not resized

4. Deselect and reselect node "A", the properties view is recreated and this time with a correct layout.