epub问题修改

This commit is contained in:
shen
2026-05-26 23:27:52 +08:00
parent 22adb76332
commit ea21c6a831
8 changed files with 257 additions and 144 deletions
@@ -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
}