Bug 508201 - List Widget size is extended when an element has a very long label.
Summary: List Widget size is extended when an element has a very long label.
Status: NEW
Alias: None
Product: Sirius
Classification: Modeling
Component: Properties (show other bugs)
Version: 4.1.0   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2016-11-25 10:41 EST by Yann Mortier CLA
Modified: 2016-12-30 04:42 EST (History)
3 users (show)

See Also:


Attachments
Sample projects to reproduce the issue (3.90 KB, application/zip)
2016-12-30 04:37 EST, Pierre-Charles David CLA
no flags Details
Screenshot of the result using the sample project (110.23 KB, image/png)
2016-12-30 04:38 EST, 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 Yann Mortier CLA 2016-11-25 10:41:23 EST
List Widget size is extended when an element has a very long label.

Steps to reproduce
 * Specify a list widget that displays an element with a very long label.
 * See that the list widget width is extended to display the label.

A horizontal scrollbar is added to the property page but it should be added into the list widget.
Comment 1 Laurent Fasani CLA 2016-11-28 09:08:19 EST
Thanks for your detailed enhancement submit.
We agree that it would be an interesting improvement.
Nevertheless it's not yet in the scope of a release, I'm marking it so that we consider it for inclusion in the next release.
Comment 2 Florian Barbin CLA 2016-12-22 10:00:33 EST
Hi Yann,

Can you please provide us a quick sample to illustrate this issue ?
Comment 3 Pierre-Charles David CLA 2016-12-30 04:37:40 EST
Created attachment 266076 [details]
Sample projects to reproduce the issue
Comment 4 Pierre-Charles David CLA 2016-12-30 04:38:08 EST
Created attachment 266077 [details]
Screenshot of the result using the sample project
Comment 5 Pierre-Charles David CLA 2016-12-30 04:42:20 EST
Steps to reproduce:
1. Import the attached project.
2. Open the diagram and select the first node (top-left).
3. In the properties view, a list widget shows the names of all the element's supertypes, which have very very very long names.

As can be seen on the attached screenshot, the scrollbar is added to the whole  properties view section. If there were other widgets in the section, for example labels with buttons, the rightmost elements would not be visible (buttons associated to labels are aligned to the right).

Instead, the list widget itself should have an internal scrollbar and only occupy as much horizontal space as there is available in the property section.