fix(diagram): resize diagram on window resize

related to CAM-2652