When the window is resized, resize the timeline.