Added an automatic resizing of the graph if the window gets resized in the webclient