优化 #5601
This commit is contained in:
@@ -342,8 +342,10 @@ class TextChapterLayout(
|
|||||||
width = visibleWidth
|
width = visibleWidth
|
||||||
height = size.height * visibleWidth / size.width
|
height = size.height * visibleWidth / size.width
|
||||||
if (pageAnim != PageAnim.scrollPageAnim && height > visibleHeight - durY) {
|
if (pageAnim != PageAnim.scrollPageAnim && height > visibleHeight - durY) {
|
||||||
width = width * visibleHeight / height
|
if (height > visibleHeight) {
|
||||||
height = visibleHeight
|
width = width * visibleHeight / height
|
||||||
|
height = visibleHeight
|
||||||
|
}
|
||||||
prepareNextPageIfNeed(durY + height)
|
prepareNextPageIfNeed(durY + height)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user