1
0
Fork 0
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:
Fred Chasen 2018-11-01 12:24:33 -07:00
parent 8b14551ab0
commit 3bf150163c

View file

@ -184,6 +184,10 @@ class Contents {
height += border.height;
}
if (height && rect.top) {
height += rect.top;
}
return Math.round(height);
}