Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#6165 closed defect (fixed)

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

Reported by: casella Owned by: adeas31
Priority: critical Milestone: 1.16.0
Component: OMEdit Version:
Keywords: Cc:

Description (last modified by 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 casella 3 years ago.

Download all attachments as: .zip

Change History (6)

Changed 3 years ago by casella

comment:1 Changed 3 years ago by casella

  • Description modified (diff)

comment:3 Changed 3 years ago by casella

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 Changed 3 years ago by adeas31

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 3 years ago by adeas31 (previous) (diff)

comment:5 Changed 3 years ago by adeas31

  • Resolution set to fixed
  • Status changed from new to closed

Ported to 1.16

Note: See TracTickets for help on using tickets.