From eca3aa7b2f963bf85ccf13c6100a67d1dc950682 Mon Sep 17 00:00:00 2001 From: John Factotum <50942278+johnfactotum@users.noreply.github.com> Date: Fri, 29 May 2020 15:10:48 +0800 Subject: [PATCH] Workaround for text being cut off in scrolled layouts See #386 --- src/web/epub.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/web/epub.js b/src/web/epub.js index d5d46dd3..1305b901 100644 --- a/src/web/epub.js +++ b/src/web/epub.js @@ -4335,6 +4335,10 @@ var Contents = function () { height += border.height; } + if (height && rect.top) { + height += rect.top; + } + return Math.round(height); }