Fix small webtoon pages

pull/478/head
Koitharu 3 years ago
parent b4bf607d3a
commit d666e4b967
Signed by: Koitharu
GPG Key ID: 676DEE768C17A9D7

@ -84,7 +84,7 @@ class WebtoonImageView @JvmOverloads constructor(
} }
} }
width = width.coerceAtLeast(suggestedMinimumWidth) width = width.coerceAtLeast(suggestedMinimumWidth)
height = height.coerceIn(suggestedMinimumHeight, parentHeight()) height = height.coerceAtLeast(suggestedMinimumHeight).coerceAtMost(parentHeight())
setMeasuredDimension(width, height) setMeasuredDimension(width, height)
} }

@ -9,6 +9,7 @@
android:id="@+id/ssiv" android:id="@+id/ssiv"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:minHeight="1dp"
app:panEnabled="false" app:panEnabled="false"
app:quickScaleEnabled="false" app:quickScaleEnabled="false"
app:zoomEnabled="false" /> app:zoomEnabled="false" />

Loading…
Cancel
Save