Modified editor to shrink when error message is displayed