Merge "[Bugfix]Use local width and height to get cutout in the target direction" into main