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:
parent
9c98ca303a
commit
605211046d
2 changed files with 2 additions and 10 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue