Fix editor layout issues