focus editor and fix margin on fullscreen