resize handler only added once per graph.
Resize event causes several event handlers to be be added. Make the events private, and prevent multiple registration.
Merge pull request #200 from kberg/resize-handler

Resize handler