jgraph / drawio

draw.io is a JavaScript, client-side editor for general diagramming.
https://www.drawio.com
Other
41.35k stars 7.67k forks source link

word wrap breaks when any line in a heading box exceeds the width of the box (for example, a long file path) #4601

Closed jimvanm closed 3 months ago

jimvanm commented 3 months ago

Preflight Checklist

You must agree to search and the code of conduct. You must fill in this entire template. If you delete part/all or miss parts out your issue will be closed.

If you are technical, you should reporting bugs along the lines of https://marker.io/blog/how-to-write-bug-report. If you are not technical, we will make allowances, please try to make an effort to understand the process.

Describe the bug In a text box A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Shapes > General > Heading
  2. Insert a heading box.
  3. Paste two paragraphs of lorem ipsum
  4. Make a copy of the heading box you just created; same size same content
  5. In the second box, between the two paragraphs paste a really long unbroken string such as /here/is/a/really/long/string/that/has/no/spaces/in/it
  6. The wrapping is now broken

Expected behavior Lines that cannot wrap due to being unbroken text (i.e. no spaces), should not prevent the other lines in the box from wrapping.

Screenshots If applicable, add screenshots to help explain your problem. image

draw.io version (In the Help->About menu of the draw.io editor):

Desktop (please complete the following information): Chrome Version 127.0.6533.89 (Official Build) (64-bit)

I tested the problem in incognito/private mode with all browser extensions switched off, write "yes" below: yes, you can do that - I'm taking time to submit a bug report. I'm not interested in performing unpaid labour.

Additional context Add any other context about the problem here.