Make editor size fit to its parent