Spaces Between Links

Hi Walter,

Please see the below image:

I am using gojs.why I am getting spaces between links.I given background as white for all the text. For all links, I will display the text. But that is not mandatory.
I am thinking if I am not displaying text for the link, then that background space is displaying.
Please correct me if I am wrong.
But showing white spaces in other areas also.
Can you please give me solution for this?

Please let me know if you need anything on this.


Yes, if a TextBlock has TextBlock.text as the empty string, the TextBlock still takes up space. Otherwise the user would never be able to click on it if they wanted to edit the text.

Maybe you could add a Binding on visible?

$(go.TextBlock, . . .,
  new go.Binding("visible", "text", function(t) { return t.length > 0; }))

Of course you should substitute the name of the link data property that you are using, if it isn’t “text”.

Note also that Bindings are not evaluated when the data property value is undefined. I don’t know if that matters in your situation.

Thank You for your reply.
I tried this code. It is working now.