Fixed resize handling for graph viewer
Fixed tests for resizing