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); }