1
0
Fork 0
mirror of https://github.com/futurepress/epub.js.git synced 2025-10-04 15:09:16 +02:00

Fix width for spreads

This commit is contained in:
Fred Chasen 2018-09-26 21:45:32 -07:00
parent 9c98ca303a
commit 605211046d
2 changed files with 2 additions and 10 deletions

View file

@ -157,10 +157,6 @@ class Contents {
rect = range.getBoundingClientRect();
width = rect.width;
if (this.content === this.document.body && rect.left) {
width += rect.left;
}
if (border && border.width) {
width += border.width;
}
@ -184,10 +180,6 @@ class Contents {
rect = range.getBoundingClientRect();
height = rect.height;
if (this.content === this.document.body && rect.top) {
height += rect.top;
}
if (height && border.height) {
height += border.height;
}