From cc9e2cee1f3608150b8f9f4e0586c7cc3925d099 Mon Sep 17 00:00:00 2001 From: len Date: Mon, 17 Apr 2017 20:01:07 +0200 Subject: [PATCH] Fix webtoon scroll jumps. Closes #751 --- .../tachiyomi/ui/reader/viewer/webtoon/WebtoonHolder.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/reader/viewer/webtoon/WebtoonHolder.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/reader/viewer/webtoon/WebtoonHolder.kt index 3fcbe0f5b7..fd3dab8dfd 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/reader/viewer/webtoon/WebtoonHolder.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/reader/viewer/webtoon/WebtoonHolder.kt @@ -4,6 +4,8 @@ import android.support.v7.widget.RecyclerView import android.view.MotionEvent import android.view.View import android.view.ViewGroup +import android.view.ViewGroup.LayoutParams.MATCH_PARENT +import android.widget.FrameLayout import com.davemorrissey.labs.subscaleview.ImageSource import com.davemorrissey.labs.subscaleview.SubsamplingScaleImageView import com.hippo.unifile.UniFile @@ -76,7 +78,8 @@ class WebtoonHolder(private val view: View, private val adapter: WebtoonAdapter) }) } - view.progress_container.minimumHeight = webtoonReader.screenHeight + view.progress_container.layoutParams = FrameLayout.LayoutParams( + MATCH_PARENT, webtoonReader.screenHeight) view.setOnTouchListener(adapter.touchListener) view.retry_button.setOnTouchListener { _, event ->