Timer responds to window size change