Adding multiline check for resize