have elevation graph redraw to fit when window is resized