Implementation of WrapMode.AnyWhere