diff --git a/cropper/src/main/kotlin/com/canhub/cropper/CropImageView.kt b/cropper/src/main/kotlin/com/canhub/cropper/CropImageView.kt index e37c0c3..2d818b3 100644 --- a/cropper/src/main/kotlin/com/canhub/cropper/CropImageView.kt +++ b/cropper/src/main/kotlin/com/canhub/cropper/CropImageView.kt @@ -1241,11 +1241,6 @@ class CropImageView @JvmOverloads constructor( override fun onLayout(changed: Boolean, l: Int, t: Int, r: Int, b: Int) { super.onLayout(changed, l, t, r, b) if (mLayoutWidth > 0 && mLayoutHeight > 0) { - // Gets original parameters, and creates the new parameters - val origParams = this.layoutParams - origParams.width = mLayoutWidth - origParams.height = mLayoutHeight - layoutParams = origParams if (originalBitmap != null) { applyImageMatrix( (r - l).toFloat(),