Reduce gaps between webtoon pages

devel
ViAnh 8 months ago committed by Koitharu
parent f7a461a9d8
commit 5155c9a33d

@ -86,9 +86,9 @@ class WebtoonImageView @JvmOverloads constructor(
desiredWidth = sWidth
desiredHeight = sHeight
} else if (resizeHeight) {
desiredHeight = (sHeight.toDouble() / sWidth.toDouble() * desiredWidth).roundToInt()
desiredHeight = (sHeight.toDouble() / sWidth.toDouble() * desiredWidth).toInt()
} else if (resizeWidth) {
desiredWidth = (sWidth.toDouble() / sHeight.toDouble() * desiredHeight).roundToInt()
desiredWidth = (sWidth.toDouble() / sHeight.toDouble() * desiredHeight).toInt()
}
}
desiredWidth = desiredWidth.coerceAtLeast(suggestedMinimumWidth)

Loading…
Cancel
Save