Spacing nodes in graph - doesn't refresh until screen is resized