Fixes to center margin option
This commit is contained in:
@@ -220,7 +220,7 @@ object ImageUtil {
|
||||
val height = imageBitmap.height
|
||||
val width = imageBitmap.width
|
||||
|
||||
val centerPadding = 96 / (max(1, viewHeight) / height)
|
||||
val centerPadding = 96 / (max(1, viewHeight) / height).coerceAtLeast(1)
|
||||
|
||||
val leftSourcePart = Rect(0, 0, width / 2, height)
|
||||
val rightSourcePart = Rect(width / 2, 0, width, height)
|
||||
|
||||
Reference in New Issue
Block a user