Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#6165 closed defect (fixed)

Parameter window does not have the right width when replaceable packages are included

Reported by: Francesco Casella Owned by: Adeel Asghar
Priority: critical Milestone: 1.16.0
Component: OMEdit Version:
Keywords: Cc:

Description (last modified by Francesco Casella)

Please check the attached test case. When you double-click on the teeJunctionIdeal component, a Parameters window pops up with a field for the replaceable Medium model.

If you click on the drop-down menu, some of the class names are shortened in the middle, with ... showing up instead of the missing text. In fact, in order to see those names complete one has to manually increase the width of the parameter windows, so that the entire fully qualified path can be seen.

I see that the width of the Parameter dialog editor is not constant in general, and is probably adapted to get all values to fit in drop-down menus. Unfortunately, this adaptation is not correct in this case, because it causes some names to be unnecessarily clipped in the middle.

@adeas31, is this difficult or easy to fix?

Attachments (1)

TestReplaceableMedia.mo (307 bytes ) - added by Francesco Casella 4 years ago.

Download all attachments as: .zip

Change History (6)

by Francesco Casella, 4 years ago

Attachment: TestReplaceableMedia.mo added

comment:1 by Francesco Casella, 4 years ago

Description: modified (diff)

comment:3 by Francesco Casella, 4 years ago

Thanks Adeel! I just started a Windows built to test it myself. Could you please port it to the 1.16 maintenance branch as well?

comment:4 by Adeel Asghar, 4 years ago

Yes of course. I have another fix https://github.com/OpenModelica/OpenModelica/pull/6852 in the pipeline. Double click issue of component, someone mentioned it during one of the dev meeting probably Rudiger. I will port both of them to 1.16 maintenance.

Last edited 4 years ago by Adeel Asghar (previous) (diff)

comment:5 by Adeel Asghar, 4 years ago

Resolution: fixed
Status: newclosed

Ported to 1.16

Note: See TracTickets for help on using tickets.