correct editor size