Adjust placement when target object is a rectangle