Fix small webtoon pages

This commit is contained in:
Koitharu
2023-08-30 16:12:02 +03:00
parent b4bf607d3a
commit d666e4b967
2 changed files with 3 additions and 2 deletions

View File

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

View File

@@ -9,10 +9,11 @@
android:id="@+id/ssiv"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:minHeight="1dp"
app:panEnabled="false"
app:quickScaleEnabled="false"
app:zoomEnabled="false" />
<include layout="@layout/layout_page_info" />
</org.koitharu.kotatsu.reader.ui.pager.webtoon.WebtoonFrameLayout>
</org.koitharu.kotatsu.reader.ui.pager.webtoon.WebtoonFrameLayout>