Fix pan of first display of opened file