@Matty wrote:
Hi,
I am trying to create nodes in cytoscape with multi-line text as label on them, however some of the related style properties show no effect when set.
Here is the style dictionary I created:'style': { 'label': 'data(label)', 'text-valign': 'center', 'line-height': '2', 'text-wrap': 'wrap', 'text-justification': 'left', 'font-size': '20px' }The label text (with
\nin it) shows up in multiple lines in the right size at the center of the node as it should be, solabel,text-wrap,text-valignandfont-sizeare working as expected. Howeverline-heightandtext-justificationseem to show no effect whatever value I change them to. The text stays aligned to the center with the lines stacked close to each other without any kind of spacing between them.
Can you help please help and point out what I am missing?
Posts: 1
Participants: 1







