Multiline labels revert to single line

I just noticed that nodes with multiline labels switch to single line once you've dragged them into the workspace

Little bug or just something hard to prevent?

image

To keep the palette width reasonable we automatically wrap long labels if necessary.

2 Likes

Aah - OK.
The reason I noticed this is because I wanted a node label to default to multiline and it doesn't.

image

try "alternate \n switch"

No sucess with that either

image

came out as
image
changed the name to make sure wasn't getting a cache issue

sorry Simon, I meant remove the this._ as well.

return this.name || "test \n text"

Still no coconut

image

image

one last try return this.name || "test \\n text" :crossed_fingers:

We have wormsign :slight_smile:
image

1 Like

I've got a supplemental but I'll leave asking it till later :slight_smile:

My suplemental is (and only for interest - I can handle the variations)

Why do some nodes have a "-" in between words when in sidebar but not when placed onto a tab?

Palette label can be different (see doc for paletteLabel)

1 Like

Ta, adding paletteLabel : "alternate switch" sorted it out for mine :slight_smile:

image

so much of thinking goes into designing ! Kudos.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.