Fix editor resize issue.