Open bfrgottscma opened 3 months ago
Debugging notes:
<text>
only seems to work in firefox and not in chrome, or safari (see https://developer.mozilla.org/en-US/docs/Web/CSS/white-space) Examples Example textLength (effect is less visible when the overflow isn't quite that large):
Support: https://caniuse.com/?search=textLength
Example foreignObject:
Support: https://caniuse.com/?search=foreignObject
Example line + text path:
Conclusion I am in favour of using foreignObject.
Currently the node boxes have a fixed horizontal size. (200px).
Another option could be to measure the required space. And to adapt the box size up to a certain horizontal limit. This approach could be combined with the foreignObject approach. The foreignObject solution could be combined with a tooltip showing the complete node content.
In my eyes: The fastest and nice solution would be the foreignObject approach. An easy addon would be the tooltip to compensate for the clippings. A bit more expensive solution but more tidy solution would be to adapt the box sizes.
@bfrgottscma we're assigning this to you for a decision on how to proceed
Go for the dots and the tool-tip.
I just read this ticket by chance. Great that you like the 3-dot solution. This morning I also thought about this and the functionality adds to readability, see #942.
Sometimes, the names of deliveries are too long to fit in the delivery text box in the station property dialogue (see Example data set, Station properties of Case 4).
However, as a user, I do not want the text in the delivery boxes running over the margins of the respective text boxes since this looks buggy. Please fit the text length to the boxes (e.g. by adding a line break and another line of text in the box).
Think of Tests
Additional context