Enforce resize logic.