Fix for resize problem on editors.