Fixed graph resizing issues