mirror of
https://github.com/futurepress/epub.js.git
synced 2025-10-04 15:09:16 +02:00
Add top from getBoundingClientRect to textHeight
This commit is contained in:
parent
8b14551ab0
commit
3bf150163c
1 changed files with 4 additions and 0 deletions
|
@ -184,6 +184,10 @@ class Contents {
|
||||||
height += border.height;
|
height += border.height;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (height && rect.top) {
|
||||||
|
height += rect.top;
|
||||||
|
}
|
||||||
|
|
||||||
return Math.round(height);
|
return Math.round(height);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue