ios: offset support, negative offset, resize