Resize logic question.

Am I misunderstanding the intention behind the resize function, or should this "or" be an "and"?