Skip to content

Commit

Permalink
Workaround for text being cut off in scrolled layouts
Browse files Browse the repository at this point in the history
See #386
  • Loading branch information
johnfactotum committed May 29, 2020
1 parent 214d5c6 commit eca3aa7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/web/epub.js
Original file line number Diff line number Diff line change
Expand Up @@ -4335,6 +4335,10 @@ var Contents = function () {
height += border.height;
}

if (height && rect.top) {
height += rect.top;
}

return Math.round(height);
}

Expand Down

1 comment on commit eca3aa7

@johnfactotum
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See #384, not #386

Please sign in to comment.