Maintain frame when file externally edited

See, for example, this thread: