Fix window resizing for timeline marker