[R28.2 mmapi] Crop rect's right out of boundary

Hi li, we can reproduce it. Will check and update.