eclipse-sirius / sirius-web

Sirius Web: open-source low-code platform to define custom web applications supporting your specific visual languages
https://eclipse.dev/sirius/sirius-web.html
Eclipse Public License 2.0
73 stars 49 forks source link

Various issues with label wrapping #3923

Open pcdavid opened 4 weeks ago

pcdavid commented 4 weeks ago

Setup: a simple rectangular node with a single top_center label.

When the label is configured with "Overflow Strategy: WRAP", it neither wraps nor resizes the node when there is a single word (no whitespaces) too wide for the node:

Capture

When the label is configured with "Overflow Strategy: ELLIPSIS" and with this text (two lines with an explicit line break between, and a long unbreakable word on the second line:

image

I get this result:

image

No ellipsis, the line break has disappeared.

frouene commented 3 weeks ago

This PR corrects wrap and ellipsis. There remains the problem of the explicit line break with ellipsis strategy