epub问题修改
This commit is contained in:
@@ -1267,6 +1267,9 @@ public final class RDEPUBReaderController: UIViewController {
|
||||
private func currentTextPageSize() -> CGSize {
|
||||
let pageNum = readerView.currentPage >= 0 ? readerView.currentPage : nil
|
||||
let resolvedSize = readerView.resolvedSinglePageSize(pageNum: pageNum)
|
||||
if ProcessInfo.processInfo.arguments.contains("--demo-pagination-debug") {
|
||||
print("[PaginationDebug] currentTextPageSize currentPage=\(readerView.currentPage) resolved=\(NSCoder.string(for: resolvedSize)) readerBounds=\(NSCoder.string(for: readerView.bounds)) viewBounds=\(NSCoder.string(for: view.bounds)) safe=\(NSCoder.string(for: view.safeAreaInsets))")
|
||||
}
|
||||
if resolvedSize.width > 0, resolvedSize.height > 0 {
|
||||
return resolvedSize
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user