public void fixCurrentCropWindowRect() {
    RectF rect = getCropWindowRect();
    fixCropWindowRectByRules(rect);
    mCropWindowHandler.setRect(rect);
  }
Fix the current crop window rectangle if it is outside of cropping image or view bounds.
core/src/main/java/com/theartofdev/edmodo/cropper/CropOverlayView.java